Update modules/ui/ui.py
Browse files- modules/ui/ui.py +9 -5
modules/ui/ui.py
CHANGED
@@ -404,7 +404,7 @@ def user_page(lang_code, t):
|
|
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', '
|
408 |
t.get('activities_tab', 'Mis Actividades'),
|
409 |
t.get('feedback_tab', 'Formulario de Comentarios')
|
410 |
])
|
@@ -422,24 +422,28 @@ def user_page(lang_code, t):
|
|
422 |
st.session_state.nlp_models,
|
423 |
t.get('TRANSLATIONS', {})
|
424 |
)
|
|
|
425 |
elif index == 1:
|
426 |
display_semantic_interface(
|
427 |
st.session_state.lang_code,
|
428 |
st.session_state.nlp_models,
|
429 |
t.get('TRANSLATIONS', {})
|
430 |
)
|
431 |
-
|
432 |
-
|
|
|
433 |
st.session_state.lang_code,
|
434 |
st.session_state.nlp_models,
|
435 |
t.get('TRANSLATIONS', {})
|
436 |
)
|
437 |
-
|
438 |
-
|
|
|
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,
|
|
|
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álisis del discurso'),
|
408 |
t.get('activities_tab', 'Mis Actividades'),
|
409 |
t.get('feedback_tab', 'Formulario de Comentarios')
|
410 |
])
|
|
|
422 |
st.session_state.nlp_models,
|
423 |
t.get('TRANSLATIONS', {})
|
424 |
)
|
425 |
+
|
426 |
elif index == 1:
|
427 |
display_semantic_interface(
|
428 |
st.session_state.lang_code,
|
429 |
st.session_state.nlp_models,
|
430 |
t.get('TRANSLATIONS', {})
|
431 |
)
|
432 |
+
|
433 |
+
elif index == 2: # Nuevo caso para el análisis semántico vivo
|
434 |
+
display_semantic_live_interface(
|
435 |
st.session_state.lang_code,
|
436 |
st.session_state.nlp_models,
|
437 |
t.get('TRANSLATIONS', {})
|
438 |
)
|
439 |
+
|
440 |
+
elif index == 3:
|
441 |
+
display_discourse_interface(
|
442 |
st.session_state.lang_code,
|
443 |
st.session_state.nlp_models,
|
444 |
t.get('TRANSLATIONS', {})
|
445 |
)
|
446 |
+
|
447 |
elif index == 4:
|
448 |
display_student_activities(
|
449 |
username=st.session_state.username,
|