jaisun2004 commited on
Commit
77b851f
Β·
verified Β·
1 Parent(s): 99efa15

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -12
app.py CHANGED
@@ -69,18 +69,18 @@ if uploaded_file:
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]:
 
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]: