Update modules/morphosyntax/morphosyntax_interface.py
Browse files
modules/morphosyntax/morphosyntax_interface.py
CHANGED
@@ -101,10 +101,10 @@ def display_morphosyntax_interface(lang_code, nlp_models, t):
|
|
101 |
else:
|
102 |
st.error(morpho_t.get('error_message', 'Error saving analysis'))
|
103 |
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
|
109 |
# Mostrar resultados previos si existen
|
110 |
elif 'morphosyntax_result' in st.session_state and st.session_state.morphosyntax_result is not None:
|
|
|
101 |
else:
|
102 |
st.error(morpho_t.get('error_message', 'Error saving analysis'))
|
103 |
|
104 |
+
except Exception as e:
|
105 |
+
st.error(morpho_t.get('error_processing', f'Error processing text: {str(e)}'))
|
106 |
+
else:
|
107 |
+
st.warning(morpho_t.get('warning_message', 'Please enter a text to analyze'))
|
108 |
|
109 |
# Mostrar resultados previos si existen
|
110 |
elif 'morphosyntax_result' in st.session_state and st.session_state.morphosyntax_result is not None:
|