Update app.py
Browse files
app.py
CHANGED
|
@@ -303,13 +303,17 @@ def main_app():
|
|
| 303 |
st.pyplot(fig)
|
| 304 |
|
| 305 |
# Store analysis results
|
| 306 |
-
|
|
|
|
| 307 |
st.session_state.username,
|
| 308 |
sentence_input,
|
| 309 |
-
|
| 310 |
arc_diagrams,
|
| 311 |
fig
|
| 312 |
-
)
|
|
|
|
|
|
|
|
|
|
| 313 |
|
| 314 |
elif st.session_state.role == "Profesor":
|
| 315 |
# Teacher interface code
|
|
|
|
| 303 |
st.pyplot(fig)
|
| 304 |
|
| 305 |
# Store analysis results
|
| 306 |
+
# Guardar el resultado
|
| 307 |
+
if store_analysis_result(
|
| 308 |
st.session_state.username,
|
| 309 |
sentence_input,
|
| 310 |
+
word_colors,
|
| 311 |
arc_diagrams,
|
| 312 |
fig
|
| 313 |
+
):
|
| 314 |
+
st.success("Análisis guardado correctamente.")
|
| 315 |
+
else:
|
| 316 |
+
st.error("Hubo un problema al guardar el análisis. Por favor, inténtelo de nuevo.")
|
| 317 |
|
| 318 |
elif st.session_state.role == "Profesor":
|
| 319 |
# Teacher interface code
|