jaisun2004 commited on
Commit
45a8093
·
verified ·
1 Parent(s): 77b851f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -68,6 +68,12 @@ if uploaded_file:
68
  st.write(summary[0]["summary_text"])
69
 
70
  with tab3:
 
 
 
 
 
 
71
 
72
  with tab4:
73
  st.subheader("📈 Emotional Trends Over Time")
 
68
  st.write(summary[0]["summary_text"])
69
 
70
  with tab3:
71
+ st.subheader("💬 Emotional Insights (Overall)")
72
+ if 'emotion_scores' in locals():
73
+ for emo in emotion_scores[0]:
74
+ st.write(f"{emo['label']}: {round(emo['score']*100, 2)}%")
75
+ else:
76
+ st.write("No emotional data to display.")
77
 
78
  with tab4:
79
  st.subheader("📈 Emotional Trends Over Time")