Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -43,9 +43,14 @@ def interactive_quiz(file, answer=None, continue_quiz='yes'):
|
|
43 |
iface = gr.Interface(
|
44 |
fn=interactive_quiz,
|
45 |
inputs=["file", "text", "text"],
|
46 |
-
outputs=[
|
|
|
|
|
|
|
|
|
47 |
live=True
|
48 |
)
|
49 |
|
|
|
50 |
iface.launch()
|
51 |
|
|
|
43 |
iface = gr.Interface(
|
44 |
fn=interactive_quiz,
|
45 |
inputs=["file", "text", "text"],
|
46 |
+
outputs=[
|
47 |
+
{"type": "text", "label": "Question", "name": "question_output"},
|
48 |
+
{"type": "text", "label": "Feedback", "name": "feedback_output"},
|
49 |
+
{"type": "text", "label": "Continue? (yes/no)", "name": "continue_output"}
|
50 |
+
],
|
51 |
live=True
|
52 |
)
|
53 |
|
54 |
+
|
55 |
iface.launch()
|
56 |
|