Lenylvt commited on
Commit
16165c6
·
verified ·
1 Parent(s): c133ab8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
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
- st.session_state.correction = correction_dictee(dictee, dictee_user)
 
 
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()