Spaces:
Running
Running
capradeepgujaran
commited on
Commit
•
76ec966
1
Parent(s):
0ef1d43
Update app.py
Browse files
app.py
CHANGED
@@ -238,7 +238,7 @@ class QuizApp:
|
|
238 |
certificate_display = gr.Image(label="Your Certificate")
|
239 |
|
240 |
# Helper functions for tab navigation
|
241 |
-
|
242 |
questions = quiz_app.generate_questions(text, num_questions)
|
243 |
return questions, 1, gr.Markdown(visible=True), gr.Button(visible=True)
|
244 |
|
|
|
238 |
certificate_display = gr.Image(label="Your Certificate")
|
239 |
|
240 |
# Helper functions for tab navigation
|
241 |
+
def generate_and_switch_tab(text, num_questions):
|
242 |
questions = quiz_app.generate_questions(text, num_questions)
|
243 |
return questions, 1, gr.Markdown(visible=True), gr.Button(visible=True)
|
244 |
|