Update modules/morphosyntax/morphosyntax_interface.py
Browse files
modules/morphosyntax/morphosyntax_interface.py
CHANGED
|
@@ -121,12 +121,6 @@ def display_morphosyntax_interface(lang_code, nlp_models, morpho_t):
|
|
| 121 |
with tabs[0]:
|
| 122 |
# st.subheader(morpho_t.get('analysis_base_subheader', "Análisis de Texto Base"))
|
| 123 |
|
| 124 |
-
# Botón para iniciar nuevo análisis
|
| 125 |
-
if st.button(morpho_t.get('btn_new_analysis', "Nuevo Análisis"), key="btn_reset_base"):
|
| 126 |
-
# Si fuera necesario recargar la app por completo:
|
| 127 |
-
# st.experimental_rerun()
|
| 128 |
-
reset_arc_analysis_state()
|
| 129 |
-
|
| 130 |
# Textarea de texto base
|
| 131 |
arc_state["base_text"] = st.text_area(
|
| 132 |
morpho_t.get('input_base_text', "Ingrese su texto inicial"),
|
|
@@ -165,6 +159,12 @@ def display_morphosyntax_interface(lang_code, nlp_models, morpho_t):
|
|
| 165 |
st.error(morpho_t.get('error_processing_base', "Error procesando texto base"))
|
| 166 |
logger.error(f"Error en análisis base: {str(exc)}")
|
| 167 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 168 |
# Mostrar diagrama base
|
| 169 |
if arc_state["base_diagram"]:
|
| 170 |
st.markdown("<hr class='divider'>", unsafe_allow_html=True)
|
|
|
|
| 121 |
with tabs[0]:
|
| 122 |
# st.subheader(morpho_t.get('analysis_base_subheader', "Análisis de Texto Base"))
|
| 123 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 124 |
# Textarea de texto base
|
| 125 |
arc_state["base_text"] = st.text_area(
|
| 126 |
morpho_t.get('input_base_text', "Ingrese su texto inicial"),
|
|
|
|
| 159 |
st.error(morpho_t.get('error_processing_base', "Error procesando texto base"))
|
| 160 |
logger.error(f"Error en análisis base: {str(exc)}")
|
| 161 |
|
| 162 |
+
# Botón para iniciar nuevo análisis
|
| 163 |
+
if st.button(morpho_t.get('btn_new_analysis', "Nuevo Análisis"), key="btn_reset_base"):
|
| 164 |
+
# Si fuera necesario recargar la app por completo:
|
| 165 |
+
# st.experimental_rerun()
|
| 166 |
+
reset_arc_analysis_state()
|
| 167 |
+
|
| 168 |
# Mostrar diagrama base
|
| 169 |
if arc_state["base_diagram"]:
|
| 170 |
st.markdown("<hr class='divider'>", unsafe_allow_html=True)
|