Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -666,7 +666,7 @@ def create_quiz_interface():
|
|
666 |
questions,
|
667 |
0,
|
668 |
initial_answers,
|
669 |
-
gr.
|
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.
|
678 |
|
679 |
def goto_certificate():
|
680 |
"""Navigate to Get Certified tab"""
|
681 |
-
return gr.
|
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
|