Spaces:
Running
Running
Update modules/morphosyntax/morphosyntax_interface.py
Browse files
modules/morphosyntax/morphosyntax_interface.py
CHANGED
|
@@ -63,6 +63,9 @@ def display_morphosyntax_interface(lang_code, nlp_models, morpho_t):
|
|
| 63 |
analyze_button = st.button(
|
| 64 |
morpho_t.get('morpho_analyze_button', 'Analyze Morphosyntax'),
|
| 65 |
key=f"morpho_button_{st.session_state.morphosyntax_state['analysis_count']}",
|
|
|
|
|
|
|
|
|
|
| 66 |
use_container_width=True
|
| 67 |
)
|
| 68 |
|
|
|
|
| 63 |
analyze_button = st.button(
|
| 64 |
morpho_t.get('morpho_analyze_button', 'Analyze Morphosyntax'),
|
| 65 |
key=f"morpho_button_{st.session_state.morphosyntax_state['analysis_count']}",
|
| 66 |
+
type="primary", # Nuevo en Streamlit 1.39.0
|
| 67 |
+
icon="🔍", # Nuevo en Streamlit 1.39.0
|
| 68 |
+
disabled=not bool(sentence_input.strip()), # Se activa solo cuando hay texto
|
| 69 |
use_container_width=True
|
| 70 |
)
|
| 71 |
|