kawaa99 commited on
Commit
b8951c8
Β·
verified Β·
1 Parent(s): 0e2531e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +25 -5
app.py CHANGED
@@ -176,19 +176,39 @@ elif mode == "Learning Analytics":
176
  col1,col2,col3,col4 = st.columns(4)
177
 
178
  with col1:
179
- st.metric("🎯 Mastered", f"{mastered}/{total_idioms}")
 
 
 
 
 
 
 
 
180
  st.progress(mastered/total_idioms)
181
 
182
  with col2:
183
- st.metric("πŸ“š Practiced", f"{practiced}/{total_idioms}")
 
 
 
 
184
  st.progress(practiced/total_idioms)
185
 
186
  with col3:
187
- st.metric("⚠️ Weak", weak)
 
 
 
 
188
  st.progress(weak/total_idioms)
189
-
190
  with col4:
191
- st.metric("🎯 Accuracy", f"{avg_acc*100:.1f}%")
 
 
 
 
192
  st.progress(avg_acc)
193
 
194
  st.markdown("---")
 
176
  col1,col2,col3,col4 = st.columns(4)
177
 
178
  with col1:
179
+ st.metric(
180
+ label="🎯 Mastered <span title='Idioms you have answered correctly at least 80% of the time'>❓</span>",
181
+ value=f"{mastered}/{total_idioms}",
182
+ delta=None,
183
+ help=None,
184
+ delta_color="normal",
185
+ label_visibility="visible",
186
+ unsafe_allow_html=True
187
+ )
188
  st.progress(mastered/total_idioms)
189
 
190
  with col2:
191
+ st.metric(
192
+ label="πŸ“š Practiced <span title='Idioms you have attempted at least once'>❓</span>",
193
+ value=f"{practiced}/{total_idioms}",
194
+ unsafe_allow_html=True
195
+ )
196
  st.progress(practiced/total_idioms)
197
 
198
  with col3:
199
+ st.metric(
200
+ label="⚠️ Weak <span title='Idioms with accuracy below 60%'>❓</span>",
201
+ value=weak,
202
+ unsafe_allow_html=True
203
+ )
204
  st.progress(weak/total_idioms)
205
+
206
  with col4:
207
+ st.metric(
208
+ label="🎯 Accuracy <span title='Your average correct rate across all attempted idioms'>❓</span>",
209
+ value=f"{avg_acc*100:.1f}%",
210
+ unsafe_allow_html=True
211
+ )
212
  st.progress(avg_acc)
213
 
214
  st.markdown("---")