capradeepgujaran commited on
Commit
2d50ccd
·
verified ·
1 Parent(s): fa75218

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -666,7 +666,7 @@ def create_quiz_interface():
666
  questions,
667
  0,
668
  initial_answers,
669
- gr.update(selected=tab_index),
670
  gr.update(visible=False),
671
  gr.update(visible=False)
672
  ]
@@ -674,11 +674,11 @@ def create_quiz_interface():
674
 
675
  def goto_take_assessment():
676
  """Navigate to Take Assessment tab"""
677
- return gr.update(selected=1)
678
 
679
  def goto_certificate():
680
  """Navigate to Get Certified tab"""
681
- return gr.update(selected=2)
682
 
683
 
684
  # Fix View Certificate navigation
 
666
  questions,
667
  0,
668
  initial_answers,
669
+ gr.Tabs(selected=tab_index),
670
  gr.update(visible=False),
671
  gr.update(visible=False)
672
  ]
 
674
 
675
  def goto_take_assessment():
676
  """Navigate to Take Assessment tab"""
677
+ return gr.Tabs(selected=1)
678
 
679
  def goto_certificate():
680
  """Navigate to Get Certified tab"""
681
+ return gr.Tabs(selected=2)
682
 
683
 
684
  # Fix View Certificate navigation