Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
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")
|