Spaces:
Runtime error
Runtime error
Update demo.py
Browse files
demo.py
CHANGED
@@ -332,9 +332,9 @@ with gr.Blocks(title="Educational AI", css=css) as demo:
|
|
332 |
lo_component = gr.Dropdown(label="Learning Objective", choices=[], value="placeholder", interactive=True)
|
333 |
question_type_component = gr.Dropdown(label="Question Type", choices=type_of_exercise, type="index", value=0)
|
334 |
|
335 |
-
correct_answers_component = gr.Number(value=1, minimum=1, maximum=3, step=1, label="Number of correct answers", visible=False)
|
336 |
-
easy_distractors_component = gr.Number(value=1, minimum=0, maximum=8, step=1, label="Number of easy distractors", visible=False)
|
337 |
-
distractors_component = gr.Number(value=1, minimum=0, maximum=8, step=1, label="Number of distractors", visible=False)
|
338 |
|
339 |
generate_btn = gr.Button("Generate Question")
|
340 |
|
|
|
332 |
lo_component = gr.Dropdown(label="Learning Objective", choices=[], value="placeholder", interactive=True)
|
333 |
question_type_component = gr.Dropdown(label="Question Type", choices=type_of_exercise, type="index", value=0)
|
334 |
|
335 |
+
correct_answers_component = gr.Number(value=1, minimum=1, maximum=3, step=1, label="Number of correct answers", visible=False, interactive=True)
|
336 |
+
easy_distractors_component = gr.Number(value=1, minimum=0, maximum=8, step=1, label="Number of easy distractors", visible=False, interactive=True)
|
337 |
+
distractors_component = gr.Number(value=1, minimum=0, maximum=8, step=1, label="Number of distractors", visible=False, interactive=True)
|
338 |
|
339 |
generate_btn = gr.Button("Generate Question")
|
340 |
|