Update app.py
Browse files
app.py
CHANGED
|
@@ -149,14 +149,12 @@ if submitted or 'dictee' in st.session_state:
|
|
| 149 |
st.audio(url, format='audio/wav')
|
| 150 |
|
| 151 |
with col2:
|
| 152 |
-
st.
|
| 153 |
-
|
| 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("###
|
| 160 |
st.markdown(st.session_state.correction)
|
| 161 |
|
| 162 |
elif mode.startswith("Entrainer"):
|
|
|
|
| 149 |
st.audio(url, format='audio/wav')
|
| 150 |
|
| 151 |
with col2:
|
| 152 |
+
dictee_user = st.text_area("Écrivez la dictée ici:", key="dictee_user")
|
| 153 |
+
if st.button("Correction", key="submit_correction"):
|
|
|
|
|
|
|
| 154 |
st.session_state.correction = correction_dictee(dictee, dictee_user)
|
| 155 |
|
| 156 |
if 'correction' in st.session_state:
|
| 157 |
+
st.markdown("### Voici la correction (*Par IA*) :")
|
| 158 |
st.markdown(st.session_state.correction)
|
| 159 |
|
| 160 |
elif mode.startswith("Entrainer"):
|