Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -69,18 +69,18 @@ if uploaded_file:
|
|
69 |
|
70 |
with tab3:
|
71 |
|
72 |
-
with tab4:
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
|
85 |
st.subheader("π¬ Emotional Insights (Overall)")
|
86 |
for emo in emotion_scores[0]:
|
|
|
69 |
|
70 |
with tab3:
|
71 |
|
72 |
+
with tab4:
|
73 |
+
st.subheader("π Emotional Trends Over Time")
|
74 |
+
|
75 |
+
session_dates = ["2024-04-01", "2024-04-08", "2024-04-15", "2024-04-22"]
|
76 |
+
anxiety_scores = [70, 65, 55, 40]
|
77 |
+
sadness_scores = [30, 20, 25, 15]
|
78 |
+
|
79 |
+
fig = go.Figure()
|
80 |
+
fig.add_trace(go.Scatter(x=session_dates, y=anxiety_scores, mode='lines+markers', name='Anxiety'))
|
81 |
+
fig.add_trace(go.Scatter(x=session_dates, y=sadness_scores, mode='lines+markers', name='Sadness'))
|
82 |
+
fig.update_layout(title='Emotional Trends', xaxis_title='Date', yaxis_title='Score (%)')
|
83 |
+
st.plotly_chart(fig)
|
84 |
|
85 |
st.subheader("π¬ Emotional Insights (Overall)")
|
86 |
for emo in emotion_scores[0]:
|