Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -773,7 +773,7 @@ def create_quiz_interface():
|
|
773 |
gr.update(visible=passed) # Show view certificate button only if passed
|
774 |
]
|
775 |
# Event handlers
|
776 |
-
|
777 |
generate_btn.click(fn=on_generate_questions, inputs=[text_input, num_questions], outputs=[question_display, current_options, question_counter, question_box, current_questions, current_question_idx, answer_state, tabs, results_group, view_cert_btn]).then(fn=lambda: gr.Tabs(selected=2), outputs=tabs)
|
778 |
|
779 |
prev_btn.click(fn=handle_prev, inputs=[current_question_idx, current_questions, answer_state, current_options], outputs=[current_question_idx, answer_state, question_display, current_options, question_counter, question_box])
|
|
|
773 |
gr.update(visible=passed) # Show view certificate button only if passed
|
774 |
]
|
775 |
# Event handlers
|
776 |
+
|
777 |
generate_btn.click(fn=on_generate_questions, inputs=[text_input, num_questions], outputs=[question_display, current_options, question_counter, question_box, current_questions, current_question_idx, answer_state, tabs, results_group, view_cert_btn]).then(fn=lambda: gr.Tabs(selected=2), outputs=tabs)
|
778 |
|
779 |
prev_btn.click(fn=handle_prev, inputs=[current_question_idx, current_questions, answer_state, current_options], outputs=[current_question_idx, answer_state, question_display, current_options, question_counter, question_box])
|