Update modules/semantic/semantic_live_interface.py
Browse files
modules/semantic/semantic_live_interface.py
CHANGED
|
@@ -199,14 +199,15 @@ def display_semantic_live_interface(lang_code, nlp_models, semantic_t):
|
|
| 199 |
use_container_width=True):
|
| 200 |
if 'last_result' in st.session_state.semantic_live_state and \
|
| 201 |
st.session_state.semantic_live_state['last_result'] is not None:
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
|
|
|
|
| 210 |
|
| 211 |
# Bot贸n de descarga
|
| 212 |
if 'concept_graph' in analysis: # Verificar existencia
|
|
|
|
| 199 |
use_container_width=True):
|
| 200 |
if 'last_result' in st.session_state.semantic_live_state and \
|
| 201 |
st.session_state.semantic_live_state['last_result'] is not None:
|
| 202 |
+
|
| 203 |
+
else:
|
| 204 |
+
st.session_state.semantic_agent_data = {
|
| 205 |
+
'text': st.session_state.semantic_live_state['current_text'],
|
| 206 |
+
'metrics': analysis,
|
| 207 |
+
'graph_data': analysis.get('concept_graph')
|
| 208 |
+
}
|
| 209 |
+
st.session_state.semantic_agent_active = True
|
| 210 |
+
st.rerun()
|
| 211 |
|
| 212 |
# Bot贸n de descarga
|
| 213 |
if 'concept_graph' in analysis: # Verificar existencia
|