Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -165,7 +165,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as app:
|
|
165 |
|
166 |
answer_inputs = []
|
167 |
for q in questions:
|
168 |
-
gr.Markdown(
|
169 |
if quiz_type == "Multiple Choice":
|
170 |
answer_inputs.append(gr.Radio(choices=q["options"], label="Select your answer"))
|
171 |
else:
|
@@ -206,8 +206,8 @@ with gr.Blocks(theme=gr.themes.Base()) as interface:
|
|
206 |
lines=10,
|
207 |
label="Questions & Answers",
|
208 |
placeholder=(
|
209 |
-
"One question per line. Separate parts with commas
|
210 |
-
"MCQ Format: Question,Option1,Option2,CorrectOption
|
211 |
"Text Format: Question,CorrectAnswer"
|
212 |
)
|
213 |
)
|
|
|
165 |
|
166 |
answer_inputs = []
|
167 |
for q in questions:
|
168 |
+
gr.Markdown("**Question:** " + q['question'])
|
169 |
if quiz_type == "Multiple Choice":
|
170 |
answer_inputs.append(gr.Radio(choices=q["options"], label="Select your answer"))
|
171 |
else:
|
|
|
206 |
lines=10,
|
207 |
label="Questions & Answers",
|
208 |
placeholder=(
|
209 |
+
"One question per line. Separate parts with commas.\\n\\n"
|
210 |
+
"MCQ Format: Question,Option1,Option2,CorrectOption\\n"
|
211 |
"Text Format: Question,CorrectAnswer"
|
212 |
)
|
213 |
)
|