umang018 commited on
Commit
9e957cc
·
verified ·
1 Parent(s): 13d80af

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 = 'inference_results.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,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['emotion_label'].value_counts()
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