kawaa99 commited on
Commit
5a2d4ef
Β·
verified Β·
1 Parent(s): b8951c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -26
app.py CHANGED
@@ -176,39 +176,23 @@ elif mode == "Learning Analytics":
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("---")
 
176
  col1,col2,col3,col4 = st.columns(4)
177
 
178
  with col1:
179
+ st.markdown("🎯 Mastered <span title='Idioms you have answered correctly at least 80% of the time'>❓</span>", unsafe_allow_html=True)
180
+ st.metric("", f"{mastered}/{total_idioms}")
 
 
 
 
 
 
 
181
  st.progress(mastered/total_idioms)
182
+
183
  with col2:
184
+ st.markdown("πŸ“š Practiced <span title='Idioms you have attempted at least once'>❓</span>", unsafe_allow_html=True)
185
+ st.metric("", f"{practiced}/{total_idioms}")
 
 
 
186
  st.progress(practiced/total_idioms)
187
+
188
  with col3:
189
+ st.markdown("⚠️ Weak <span title='Idioms with accuracy below 60%'>❓</span>", unsafe_allow_html=True)
190
+ st.metric("", weak)
 
 
 
191
  st.progress(weak/total_idioms)
192
 
193
  with col4:
194
+ st.markdown("🎯 Accuracy <span title='Your average correct rate across all attempted idioms'>❓</span>", unsafe_allow_html=True)
195
+ st.metric("", f"{avg_acc*100:.1f}%")
 
 
 
196
  st.progress(avg_acc)
197
 
198
  st.markdown("---")