Lenylvt commited on
Commit
c322699
·
verified ·
1 Parent(s): bba8ad1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -157,12 +157,12 @@ 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", height=300)
161
  if st.button("📝 Correction", key="submit_correction"):
162
- with st.spinner("🤖 Dictée en cours de correction..."):
163
  st.session_state.correction = correction_dictee(dictee, dictee_user)
164
 
165
- if 'correction' in st.session_state:
 
166
  st.markdown("### 🎉 Voici la correction (*Par IA*) :")
167
  st.markdown(st.session_state.correction)
168
 
 
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 st.session_state.correction:
165
+ st.divider()
166
  st.markdown("### 🎉 Voici la correction (*Par IA*) :")
167
  st.markdown(st.session_state.correction)
168