Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -741,6 +741,12 @@ def create_quiz_interface():
|
|
741 |
"""Navigate to certificate tab"""
|
742 |
return gr.update(selected=3)
|
743 |
|
|
|
|
|
|
|
|
|
|
|
|
|
744 |
def on_submit(questions, answers, current_idx, current_answer):
|
745 |
"""Handle quiz submission with proper Markdown rendering"""
|
746 |
final_answers = list(answers)
|
|
|
741 |
"""Navigate to certificate tab"""
|
742 |
return gr.update(selected=3)
|
743 |
|
744 |
+
def handle_prev(current_idx, questions, answers, current_answer):
|
745 |
+
return navigate(-1, current_idx, questions, answers, current_answer)
|
746 |
+
|
747 |
+
def handle_next(current_idx, questions, answers, current_answer):
|
748 |
+
return navigate(1, current_idx, questions, answers, current_answer)
|
749 |
+
|
750 |
def on_submit(questions, answers, current_idx, current_answer):
|
751 |
"""Handle quiz submission with proper Markdown rendering"""
|
752 |
final_answers = list(answers)
|