Update modules/ui/ui.py
Browse files- modules/ui/ui.py +11 -2
modules/ui/ui.py
CHANGED
@@ -62,6 +62,8 @@ from ..semantic.semantic_interface import (
|
|
62 |
display_semantic_results
|
63 |
)
|
64 |
|
|
|
|
|
65 |
from ..discourse.discourse_interface import ( # Agregar esta importación
|
66 |
display_discourse_interface,
|
67 |
display_discourse_results
|
@@ -401,6 +403,7 @@ def user_page(lang_code, t):
|
|
401 |
tabs = st.tabs([
|
402 |
t.get('morpho_tab', 'Análisis Morfosintáctico'),
|
403 |
t.get('semantic_tab', 'Análisis Semántico'),
|
|
|
404 |
t.get('discourse_tab', 'Análsis de discurso'),
|
405 |
t.get('activities_tab', 'Mis Actividades'),
|
406 |
t.get('feedback_tab', 'Formulario de Comentarios')
|
@@ -431,13 +434,19 @@ def user_page(lang_code, t):
|
|
431 |
st.session_state.nlp_models,
|
432 |
t.get('TRANSLATIONS', {})
|
433 |
)
|
434 |
-
elif index == 3:
|
|
|
|
|
|
|
|
|
|
|
|
|
435 |
display_student_activities(
|
436 |
username=st.session_state.username,
|
437 |
lang_code=st.session_state.lang_code,
|
438 |
t=t.get('ACTIVITIES_TRANSLATIONS', {})
|
439 |
)
|
440 |
-
elif index ==
|
441 |
display_feedback_form(
|
442 |
st.session_state.lang_code,
|
443 |
t
|
|
|
62 |
display_semantic_results
|
63 |
)
|
64 |
|
65 |
+
from ..semantic.semantic_live_interface import display_semantic_live_interface
|
66 |
+
|
67 |
from ..discourse.discourse_interface import ( # Agregar esta importación
|
68 |
display_discourse_interface,
|
69 |
display_discourse_results
|
|
|
403 |
tabs = st.tabs([
|
404 |
t.get('morpho_tab', 'Análisis Morfosintáctico'),
|
405 |
t.get('semantic_tab', 'Análisis Semántico'),
|
406 |
+
t.get('semantic_live_tab', 'Análisis Semántico Vivo'), # Nuevo tab
|
407 |
t.get('discourse_tab', 'Análsis de discurso'),
|
408 |
t.get('activities_tab', 'Mis Actividades'),
|
409 |
t.get('feedback_tab', 'Formulario de Comentarios')
|
|
|
434 |
st.session_state.nlp_models,
|
435 |
t.get('TRANSLATIONS', {})
|
436 |
)
|
437 |
+
elif index == 3: # Nuevo caso para el análisis semántico vivo
|
438 |
+
display_semantic_live_interface(
|
439 |
+
st.session_state.lang_code,
|
440 |
+
st.session_state.nlp_models,
|
441 |
+
t.get('TRANSLATIONS', {})
|
442 |
+
)
|
443 |
+
elif index == 4:
|
444 |
display_student_activities(
|
445 |
username=st.session_state.username,
|
446 |
lang_code=st.session_state.lang_code,
|
447 |
t=t.get('ACTIVITIES_TRANSLATIONS', {})
|
448 |
)
|
449 |
+
elif index == 5:
|
450 |
display_feedback_form(
|
451 |
st.session_state.lang_code,
|
452 |
t
|