Update modules/semantic/semantic_live_interface.py
Browse files
modules/semantic/semantic_live_interface.py
CHANGED
@@ -193,13 +193,12 @@ def display_semantic_live_interface(lang_code, nlp_models, semantic_t):
|
|
193 |
col1, col2 = st.columns([1, 3])
|
194 |
|
195 |
with col1:
|
196 |
-
# Bot贸n para consultar con el asistente (
|
197 |
if st.button("馃挰 Consultar con Asistente",
|
198 |
-
|
199 |
-
|
200 |
-
if 'last_result' in st.session_state.semantic_live_state
|
201 |
-
st.
|
202 |
-
|
203 |
else:
|
204 |
st.session_state.semantic_agent_data = {
|
205 |
'text': st.session_state.semantic_live_state['current_text'],
|
|
|
193 |
col1, col2 = st.columns([1, 3])
|
194 |
|
195 |
with col1:
|
196 |
+
# Bot贸n para consultar con el asistente (CORREGIDO)
|
197 |
if st.button("馃挰 Consultar con Asistente",
|
198 |
+
key="semantic_live_chat_button",
|
199 |
+
use_container_width=True):
|
200 |
+
if 'last_result' not in st.session_state.semantic_live_state:
|
201 |
+
st.error("Primero complete el an谩lisis sem谩ntico")
|
|
|
202 |
else:
|
203 |
st.session_state.semantic_agent_data = {
|
204 |
'text': st.session_state.semantic_live_state['current_text'],
|