Update modules/morphosyntax/morphosyntax_interface.py
Browse files
modules/morphosyntax/morphosyntax_interface.py
CHANGED
@@ -52,11 +52,14 @@ def display_morphosyntax_interface(lang_code, nlp_models, morpho_t):
|
|
52 |
st.session_state[f"text_area_{lang_code}_{st.session_state.analysis_counter}"])
|
53 |
)
|
54 |
|
55 |
-
# Botón
|
56 |
if st.button(
|
57 |
-
morpho_t.get('
|
58 |
-
key=
|
|
|
|
|
59 |
):
|
|
|
60 |
current_input = st.session_state[input_key]
|
61 |
|
62 |
if current_input:
|
|
|
52 |
st.session_state[f"text_area_{lang_code}_{st.session_state.analysis_counter}"])
|
53 |
)
|
54 |
|
55 |
+
# Botón específico para análisis morfosintáctico
|
56 |
if st.button(
|
57 |
+
morpho_t.get('morpho_analyze_button', 'Analyze Morphosyntax'), # Nombre específico
|
58 |
+
key="morpho_analysis_button", # Key única para morfosintáctico
|
59 |
+
disabled=not sentence_input, # Se habilita solo si hay texto
|
60 |
+
use_container_width=True
|
61 |
):
|
62 |
+
|
63 |
current_input = st.session_state[input_key]
|
64 |
|
65 |
if current_input:
|