Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 180 |
st.progress(mastered/total_idioms)
|
| 181 |
|
| 182 |
with col2:
|
| 183 |
-
st.metric(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 184 |
st.progress(practiced/total_idioms)
|
| 185 |
|
| 186 |
with col3:
|
| 187 |
-
st.metric(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 188 |
st.progress(weak/total_idioms)
|
| 189 |
-
|
| 190 |
with col4:
|
| 191 |
-
st.metric(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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("---")
|