Update app.py
Browse files
app.py
CHANGED
|
@@ -211,11 +211,9 @@ def main():
|
|
| 211 |
with col2:
|
| 212 |
intervention_frequency = intervention_stats['Intervention Frequency (%)'].values[0]
|
| 213 |
# Display the "Intervention Frequency (%)" text
|
| 214 |
-
|
| 215 |
-
st.markdown("<h3 style='color: #358E66; margin-bottom: 0px; margin-bottom: 0px;'>Intervention Frequency</h3>",unsafe_allow_html=True)
|
| 216 |
# Display the frequency value below it
|
| 217 |
-
|
| 218 |
-
st.markdown(f"<h1 style='color: #358E66; margin-top: 0px; margin-bottom: 0px;'>{intervention_frequency}%</h1>", unsafe_allow_html=True)
|
| 219 |
|
| 220 |
# Add download button for Intervention Session Statistics chart
|
| 221 |
download_chart(intervention_fig, "intervention_statistics_chart.png")
|
|
@@ -236,14 +234,13 @@ def main():
|
|
| 236 |
|
| 237 |
with col1:
|
| 238 |
student_metrics_fig = plot_student_metrics(student_metrics_df, attendance_avg_stats, engagement_avg_stats)
|
| 239 |
-
|
| 240 |
with col2:
|
| 241 |
# Display the "Attendance Average (%)" text and value
|
| 242 |
st.markdown("<h4 style='color: #358E66;'>Attendance Average (%)</h4>", unsafe_allow_html=True)
|
| 243 |
if attendance_avg_stats is not None:
|
| 244 |
-
st.markdown(f"<h2 style='color: #358E66;
|
| 245 |
-
else:
|
| 246 |
-
st.markdown("<h2 style='color: #358E66;'>N/A</h2>", unsafe_allow_html=True)
|
| 247 |
|
| 248 |
# Display the "Engagement Average (%)" text and value
|
| 249 |
st.markdown("<h4 style='color: #358E66; margin-top: 0px; margin-bottom: 0px;'>Engagement Average (%)</h4>", unsafe_allow_html=True)
|
|
|
|
| 211 |
with col2:
|
| 212 |
intervention_frequency = intervention_stats['Intervention Frequency (%)'].values[0]
|
| 213 |
# Display the "Intervention Frequency (%)" text
|
| 214 |
+
st.markdown("<h3 style='color: #358E66;'>Intervention Frequency</h3>", unsafe_allow_html=True)
|
|
|
|
| 215 |
# Display the frequency value below it
|
| 216 |
+
st.markdown(f"<h1 style='color: #358E66;'>{intervention_frequency}%</h1>", unsafe_allow_html=True)
|
|
|
|
| 217 |
|
| 218 |
# Add download button for Intervention Session Statistics chart
|
| 219 |
download_chart(intervention_fig, "intervention_statistics_chart.png")
|
|
|
|
| 234 |
|
| 235 |
with col1:
|
| 236 |
student_metrics_fig = plot_student_metrics(student_metrics_df, attendance_avg_stats, engagement_avg_stats)
|
| 237 |
+
|
| 238 |
with col2:
|
| 239 |
# Display the "Attendance Average (%)" text and value
|
| 240 |
st.markdown("<h4 style='color: #358E66;'>Attendance Average (%)</h4>", unsafe_allow_html=True)
|
| 241 |
if attendance_avg_stats is not None:
|
| 242 |
+
st.markdown(f"<h2 style='color: #358E66; '>{attendance_avg_stats}%</h2>", unsafe_allow_html=True)
|
| 243 |
+
else: afe_allow_html=True)
|
|
|
|
| 244 |
|
| 245 |
# Display the "Engagement Average (%)" text and value
|
| 246 |
st.markdown("<h4 style='color: #358E66; margin-top: 0px; margin-bottom: 0px;'>Engagement Average (%)</h4>", unsafe_allow_html=True)
|