Spaces:
Runtime error
Runtime error
update app.py
Browse files
app.py
CHANGED
|
@@ -33,7 +33,10 @@ def generate_multiple_choice_question(
|
|
| 33 |
|
| 34 |
demo = gr.Interface(
|
| 35 |
fn=generate_multiple_choice_question,
|
| 36 |
-
inputs=gr.Textbox(lines=
|
| 37 |
-
outputs=gr.Textbox(lines=5, placeholder="Question:
|
|
|
|
|
|
|
|
|
|
| 38 |
)
|
| 39 |
demo.launch()
|
|
|
|
| 33 |
|
| 34 |
demo = gr.Interface(
|
| 35 |
fn=generate_multiple_choice_question,
|
| 36 |
+
inputs=gr.Textbox(lines=8, placeholder="Context Here..."),
|
| 37 |
+
outputs=gr.Textbox(lines=5, placeholder="Question: \n[A] \n[B] \n[C] \n[D] "),
|
| 38 |
+
title="Multiple-choice Question (and Options) Generator",
|
| 39 |
+
description="Provide some context (e.g. news article or any passage) in the context box and click **Submit**. The models currently support English only. This demo is a part of MQAG - https://github.com/potsawee/mqag0.",
|
| 40 |
+
allow_flagging='never'
|
| 41 |
)
|
| 42 |
demo.launch()
|