Update app.py
Browse files
app.py
CHANGED
@@ -150,10 +150,10 @@ if submitted or 'dictee' in st.session_state:
|
|
150 |
|
151 |
with col2:
|
152 |
st.markdown("## ✍️ Votre Dictée")
|
153 |
-
dictee_user = st.text_area("Écrivez la dictée ici:", key="dictee_user")
|
154 |
if st.button("📝 Correction", key="submit_correction"):
|
155 |
-
|
156 |
-
|
157 |
|
158 |
if 'correction' in st.session_state:
|
159 |
st.markdown("### 🎉 Voici la correction (*Par IA*) :")
|
|
|
150 |
|
151 |
with col2:
|
152 |
st.markdown("## ✍️ Votre Dictée")
|
153 |
+
dictee_user = st.text_area("Écrivez la dictée ici:", key="dictee_user", height=1000)
|
154 |
if st.button("📝 Correction", key="submit_correction"):
|
155 |
+
st.spinner(text="🤖 Dictée en cours de correction...")
|
156 |
+
st.session_state.correction = correction_dictee(dictee, dictee_user)
|
157 |
|
158 |
if 'correction' in st.session_state:
|
159 |
st.markdown("### 🎉 Voici la correction (*Par IA*) :")
|