Update app.py
Browse files
app.py
CHANGED
@@ -157,9 +157,11 @@ if submitted or 'dictee' in st.session_state:
|
|
157 |
|
158 |
with col2:
|
159 |
st.markdown("## ✍️ Votre Dictée")
|
160 |
-
dictee_user = st.text_area("Écrivez la dictée ici:", key="dictee_user")
|
161 |
if st.button("📝 Correction", key="submit_correction"):
|
162 |
-
|
|
|
|
|
163 |
|
164 |
if 'correction' in st.session_state:
|
165 |
st.divider()
|
|
|
157 |
|
158 |
with col2:
|
159 |
st.markdown("## ✍️ Votre Dictée")
|
160 |
+
dictee_user = st.text_area("Écrivez la dictée ici:", key="dictee_user", weight=350)
|
161 |
if st.button("📝 Correction", key="submit_correction"):
|
162 |
+
with st.spinner("📝 Correction en cours..."):
|
163 |
+
correction = correction_dictee(dictee, dictee_user)
|
164 |
+
st.session_state.correction = correction
|
165 |
|
166 |
if 'correction' in st.session_state:
|
167 |
st.divider()
|