Spaces:
Runtime error
Runtime error
Update self-learning-quiz.py
Browse files- self-learning-quiz.py +2 -4
self-learning-quiz.py
CHANGED
@@ -29,11 +29,9 @@ def interactive_quiz(user_response=None, continue_quiz='yes', question_index=0):
|
|
29 |
|
30 |
return "\n".join(output_messages), question_index
|
31 |
|
32 |
-
|
33 |
fn=interactive_quiz,
|
34 |
inputs=["text", "text", "number"],
|
35 |
outputs=["text", "number"],
|
36 |
live=True
|
37 |
-
)
|
38 |
-
|
39 |
-
iface.launch()
|
|
|
29 |
|
30 |
return "\n".join(output_messages), question_index
|
31 |
|
32 |
+
gr.Interface(
|
33 |
fn=interactive_quiz,
|
34 |
inputs=["text", "text", "number"],
|
35 |
outputs=["text", "number"],
|
36 |
live=True
|
37 |
+
).launch()
|
|
|
|