AIdeaText commited on
Commit
4689360
·
verified ·
1 Parent(s): 080d86e

Update modules/ui/ui.py

Browse files
Files changed (1) hide show
  1. modules/ui/ui.py +8 -8
modules/ui/ui.py CHANGED
@@ -496,7 +496,7 @@ def user_page(lang_code, t):
496
  display_current_situation_interface(
497
  st.session_state.lang_code,
498
  st.session_state.nlp_models,
499
- t.get('CURRENT_SITUATION_TRANSLATIONS', {})
500
  )
501
 
502
  elif index == 1: # Morfosintáctico
@@ -504,7 +504,7 @@ def user_page(lang_code, t):
504
  display_morphosyntax_interface(
505
  st.session_state.lang_code,
506
  st.session_state.nlp_models,
507
- t.get('MORPHO_TRANSLATIONS', {})
508
  )
509
 
510
 
@@ -513,7 +513,7 @@ def user_page(lang_code, t):
513
  display_semantic_live_interface(
514
  st.session_state.lang_code,
515
  st.session_state.nlp_models,
516
- t.get('SEMANTIC_LIVE_TRANSLATIONS', {})
517
  )
518
 
519
  elif index == 3: # Semántico
@@ -521,7 +521,7 @@ def user_page(lang_code, t):
521
  display_semantic_interface(
522
  st.session_state.lang_code,
523
  st.session_state.nlp_models,
524
- t.get('SEMANTIC_TRANSLATIONS', {})
525
  )
526
 
527
  elif index == 4: # Discurso Vivo
@@ -529,7 +529,7 @@ def user_page(lang_code, t):
529
  display_discourse_live_interface(
530
  st.session_state.lang_code,
531
  st.session_state.nlp_models,
532
- t.get('DISCOURSE_LIVE_TRANSLATIONS', {})
533
  )
534
 
535
 
@@ -538,7 +538,7 @@ def user_page(lang_code, t):
538
  display_discourse_interface(
539
  st.session_state.lang_code,
540
  st.session_state.nlp_models,
541
- t.get('DISCOURSE_TRANSLATIONS', {})
542
  )
543
 
544
  elif index == 6: # Actividades
@@ -546,7 +546,7 @@ def user_page(lang_code, t):
546
  display_student_activities(
547
  username=st.session_state.username,
548
  lang_code=st.session_state.lang_code,
549
- t=t.get('ACTIVITIES_TRANSLATIONS', {})
550
  )
551
 
552
  elif index == 7: # Feedback
@@ -554,7 +554,7 @@ def user_page(lang_code, t):
554
  display_feedback_form(
555
  st.session_state.lang_code,
556
  lang_code=st.session_state.lang_code,
557
- t=t.get('FEEDBACK_TRANSLATIONS', {})
558
  )
559
 
560
  except Exception as e:
 
496
  display_current_situation_interface(
497
  st.session_state.lang_code,
498
  st.session_state.nlp_models,
499
+ t.get('CURRENT_SITUATION', {})
500
  )
501
 
502
  elif index == 1: # Morfosintáctico
 
504
  display_morphosyntax_interface(
505
  st.session_state.lang_code,
506
  st.session_state.nlp_models,
507
+ t.get('MORPHOSYNTACTIC', {})
508
  )
509
 
510
 
 
513
  display_semantic_live_interface(
514
  st.session_state.lang_code,
515
  st.session_state.nlp_models,
516
+ t.get('SEMANTIC_LIVE', {})
517
  )
518
 
519
  elif index == 3: # Semántico
 
521
  display_semantic_interface(
522
  st.session_state.lang_code,
523
  st.session_state.nlp_models,
524
+ t.get('SEMANTIC', {})
525
  )
526
 
527
  elif index == 4: # Discurso Vivo
 
529
  display_discourse_live_interface(
530
  st.session_state.lang_code,
531
  st.session_state.nlp_models,
532
+ t.get('DISCOURSE_LIVE', {})
533
  )
534
 
535
 
 
538
  display_discourse_interface(
539
  st.session_state.lang_code,
540
  st.session_state.nlp_models,
541
+ t.get('DISCOURSE', {})
542
  )
543
 
544
  elif index == 6: # Actividades
 
546
  display_student_activities(
547
  username=st.session_state.username,
548
  lang_code=st.session_state.lang_code,
549
+ t=t.get('ACTIVITIES', {})
550
  )
551
 
552
  elif index == 7: # Feedback
 
554
  display_feedback_form(
555
  st.session_state.lang_code,
556
  lang_code=st.session_state.lang_code,
557
+ t=t.get('FEEDBACK', {})
558
  )
559
 
560
  except Exception as e: