Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def main():
|
|
18 |
st.title("Emotion Filter and Pagination App")
|
19 |
|
20 |
# Load the data
|
21 |
-
file_path = '
|
22 |
df = load_data(file_path)
|
23 |
|
24 |
# Dropdown for selecting emotion
|
@@ -42,7 +42,7 @@ def main():
|
|
42 |
paginated_data = paginate_data(filtered_data, page_number, page_size)
|
43 |
|
44 |
# Display total counts of each emotion
|
45 |
-
emotion_counts = df['
|
46 |
st.write("### Total Emails of Each Emotion")
|
47 |
st.write(emotion_counts)
|
48 |
|
|
|
18 |
st.title("Emotion Filter and Pagination App")
|
19 |
|
20 |
# Load the data
|
21 |
+
file_path = 'enron_kaggle_clean.csv' # Ensure this is the correct path to your uploaded CSV file
|
22 |
df = load_data(file_path)
|
23 |
|
24 |
# Dropdown for selecting emotion
|
|
|
42 |
paginated_data = paginate_data(filtered_data, page_number, page_size)
|
43 |
|
44 |
# Display total counts of each emotion
|
45 |
+
emotion_counts = df['emotion'].value_counts()
|
46 |
st.write("### Total Emails of Each Emotion")
|
47 |
st.write(emotion_counts)
|
48 |
|