Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -47,14 +47,6 @@ with gr.Blocks(title=title) as demo:
|
|
| 47 |
label="Export",
|
| 48 |
info="Use in Moodle"
|
| 49 |
)
|
| 50 |
-
with gr.Row():
|
| 51 |
-
with gr.Column():
|
| 52 |
-
question_name = gr.Textbox(label="Change Question name here",
|
| 53 |
-
info="Describe your MCQ question",
|
| 54 |
-
lines=1,
|
| 55 |
-
value="Default",
|
| 56 |
-
)
|
| 57 |
-
update_button = gr.Button("Modify")
|
| 58 |
with gr.Tab("Inspera MCQ"):
|
| 59 |
with gr.Row():
|
| 60 |
with gr.Column():
|
|
@@ -108,6 +100,5 @@ with gr.Blocks(title=title) as demo:
|
|
| 108 |
mcq_button.click(multi_mcq, inputs=[mcq_input1,mcq_input2], outputs=[mcq_output1,mcq_output2])
|
| 109 |
inspera_mcq_button.click(inspera_multi_mcq, inputs=[inspera_mcq_input1,inspera_mcq_input2], outputs=[inspera_mcq_output1,inspera_mcq_output2])
|
| 110 |
stack_button.click(generate_stack, inputs=stack_input, outputs=[stack_output1,stack_output2])
|
| 111 |
-
update_button.click(generate_output, inputs=question_name, outputs=[question_name])
|
| 112 |
|
| 113 |
demo.queue().launch()
|
|
|
|
| 47 |
label="Export",
|
| 48 |
info="Use in Moodle"
|
| 49 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
with gr.Tab("Inspera MCQ"):
|
| 51 |
with gr.Row():
|
| 52 |
with gr.Column():
|
|
|
|
| 100 |
mcq_button.click(multi_mcq, inputs=[mcq_input1,mcq_input2], outputs=[mcq_output1,mcq_output2])
|
| 101 |
inspera_mcq_button.click(inspera_multi_mcq, inputs=[inspera_mcq_input1,inspera_mcq_input2], outputs=[inspera_mcq_output1,inspera_mcq_output2])
|
| 102 |
stack_button.click(generate_stack, inputs=stack_input, outputs=[stack_output1,stack_output2])
|
|
|
|
| 103 |
|
| 104 |
demo.queue().launch()
|