Update modules/ui/ui.py
Browse files- modules/ui/ui.py +10 -0
modules/ui/ui.py
CHANGED
@@ -6,6 +6,7 @@ import logging
|
|
6 |
from datetime import datetime, timezone
|
7 |
from dateutil.parser import parse
|
8 |
|
|
|
9 |
# Configuraci贸n del logger
|
10 |
logging.basicConfig(level=logging.INFO)
|
11 |
logger = logging.getLogger(__name__)
|
@@ -61,6 +62,8 @@ from ..discourse.discourse_interface import ( # Agregar esta importaci贸n
|
|
61 |
display_discourse_results
|
62 |
)
|
63 |
|
|
|
|
|
64 |
def main():
|
65 |
logger.info(f"Entrando en main() - P谩gina actual: {st.session_state.page}")
|
66 |
|
@@ -225,6 +228,7 @@ def display_videos_and_info(lang_code, t):
|
|
225 |
|
226 |
#Despu茅s de iniciar sesi贸n
|
227 |
####################################
|
|
|
228 |
def user_page(lang_code, t):
|
229 |
logger.info(f"Entrando en user_page para el estudiante: {st.session_state.username}")
|
230 |
|
@@ -292,6 +296,12 @@ def user_page(lang_code, t):
|
|
292 |
|
293 |
st.markdown("---")
|
294 |
|
|
|
|
|
|
|
|
|
|
|
|
|
295 |
# Sistema de tabs
|
296 |
tabs = st.tabs([
|
297 |
t.get('morpho_tab', 'An谩lisis Morfosint谩ctico'),
|
|
|
6 |
from datetime import datetime, timezone
|
7 |
from dateutil.parser import parse
|
8 |
|
9 |
+
|
10 |
# Configuraci贸n del logger
|
11 |
logging.basicConfig(level=logging.INFO)
|
12 |
logger = logging.getLogger(__name__)
|
|
|
62 |
display_discourse_results
|
63 |
)
|
64 |
|
65 |
+
from ..chatbot import display_sidebar_chat
|
66 |
+
|
67 |
def main():
|
68 |
logger.info(f"Entrando en main() - P谩gina actual: {st.session_state.page}")
|
69 |
|
|
|
228 |
|
229 |
#Despu茅s de iniciar sesi贸n
|
230 |
####################################
|
231 |
+
|
232 |
def user_page(lang_code, t):
|
233 |
logger.info(f"Entrando en user_page para el estudiante: {st.session_state.username}")
|
234 |
|
|
|
296 |
|
297 |
st.markdown("---")
|
298 |
|
299 |
+
# Obtener traducciones del chatbot
|
300 |
+
chatbot_t = t.get('CHATBOT_TRANSLATIONS', {})
|
301 |
+
|
302 |
+
# Mostrar chatbot en sidebar
|
303 |
+
display_sidebar_chat(lang_code, chatbot_t)
|
304 |
+
|
305 |
# Sistema de tabs
|
306 |
tabs = st.tabs([
|
307 |
t.get('morpho_tab', 'An谩lisis Morfosint谩ctico'),
|