Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ def main():
|
|
31 |
selected_emotion = st.selectbox('Select Emotion', unique_emotions)
|
32 |
|
33 |
# Filter the data based on the selected emotion and sort by score
|
34 |
-
filtered_data = df[df['emotion'] == selected_emotion].sort_values(by='
|
35 |
|
36 |
# Pagination settings
|
37 |
page_size = 10
|
|
|
31 |
selected_emotion = st.selectbox('Select Emotion', unique_emotions)
|
32 |
|
33 |
# Filter the data based on the selected emotion and sort by score
|
34 |
+
filtered_data = df[df['emotion'] == selected_emotion].sort_values(by='emoscore', ascending=False).head(100)
|
35 |
|
36 |
# Pagination settings
|
37 |
page_size = 10
|