Update app.py
Browse files
app.py
CHANGED
@@ -161,7 +161,7 @@ if submitted or 'dictee' in st.session_state:
|
|
161 |
dictee_user = st.text_area("Écrivez la dictée ici:", key="dictee_user", height=350)
|
162 |
correct = st.form_submit_button("📝 Correction")
|
163 |
|
164 |
-
if
|
165 |
st.session_state.correction = correction_dictee(dictee, dictee_user)
|
166 |
st.divider()
|
167 |
st.markdown("### 🎉 Voici la correction (*Par IA*) :")
|
|
|
161 |
dictee_user = st.text_area("Écrivez la dictée ici:", key="dictee_user", height=350)
|
162 |
correct = st.form_submit_button("📝 Correction")
|
163 |
|
164 |
+
if correct or 'correction' in st.session_state:
|
165 |
st.session_state.correction = correction_dictee(dictee, dictee_user)
|
166 |
st.divider()
|
167 |
st.markdown("### 🎉 Voici la correction (*Par IA*) :")
|