Update app.py
Browse files
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"
|
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
|
|
|
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 |
|