Update modules/morphosyntax/morphosyntax_interface.py
Browse files
modules/morphosyntax/morphosyntax_interface.py
CHANGED
@@ -202,12 +202,6 @@ def display_morphosyntax_interface(lang_code, nlp_models, morpho_t):
|
|
202 |
height=150
|
203 |
)
|
204 |
|
205 |
-
# --- 3) Mostrar diagrama de iteraci贸n debajo ---
|
206 |
-
if arc_state["iteration_diagram"]:
|
207 |
-
st.markdown("<hr class='divider'>", unsafe_allow_html=True)
|
208 |
-
st.markdown(f"#### {morpho_t.get('arc_diagram_iteration_label', 'Diagrama de Arco (Iteraci贸n)')}")
|
209 |
-
st.write(arc_state["iteration_diagram"], unsafe_allow_html=True)
|
210 |
-
|
211 |
# Bot贸n para analizar iteraci贸n
|
212 |
if st.button(morpho_t.get('btn_analyze_iteration', "Analizar Cambios"), key="btn_analyze_iteration"):
|
213 |
if not arc_state["iteration_text"].strip():
|
@@ -239,3 +233,12 @@ def display_morphosyntax_interface(lang_code, nlp_models, morpho_t):
|
|
239 |
st.error(morpho_t.get('error_iteration', "Error procesando los nuevos cambios"))
|
240 |
logger.error(f"Error en iteraci贸n: {str(exc)}")
|
241 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
202 |
height=150
|
203 |
)
|
204 |
|
|
|
|
|
|
|
|
|
|
|
|
|
205 |
# Bot贸n para analizar iteraci贸n
|
206 |
if st.button(morpho_t.get('btn_analyze_iteration', "Analizar Cambios"), key="btn_analyze_iteration"):
|
207 |
if not arc_state["iteration_text"].strip():
|
|
|
233 |
st.error(morpho_t.get('error_iteration', "Error procesando los nuevos cambios"))
|
234 |
logger.error(f"Error en iteraci贸n: {str(exc)}")
|
235 |
|
236 |
+
|
237 |
+
# --- 3) Mostrar diagrama de iteraci贸n debajo ---
|
238 |
+
if arc_state["iteration_diagram"]:
|
239 |
+
st.markdown("<hr class='divider'>", unsafe_allow_html=True)
|
240 |
+
st.markdown(f"#### {morpho_t.get('arc_diagram_iteration_label', 'Diagrama de Arco (Iteraci贸n)')}")
|
241 |
+
st.write(arc_state["iteration_diagram"], unsafe_allow_html=True)
|
242 |
+
|
243 |
+
|
244 |
+
|