Spaces:
Sleeping
Sleeping
elibrowne
commited on
Commit
·
07eb932
1
Parent(s):
fdd4e85
Load first question from list
Browse files
app.py
CHANGED
@@ -288,7 +288,7 @@ with gr.Blocks(theme = theme) as user_eval:
|
|
288 |
with gr.Row(equal_height = False, visible = False) as question:
|
289 |
with gr.Column():
|
290 |
gr.Markdown("**Question**")
|
291 |
-
gr.Markdown(current_question["question"])
|
292 |
a = gr.Button(current_question["answers"][0])
|
293 |
b = gr.Button(current_question["answers"][1])
|
294 |
c = gr.Button(current_question["answers"][2])
|
@@ -368,9 +368,14 @@ with gr.Blocks(theme = theme) as user_eval:
|
|
368 |
""" \n
|
369 |
+ """ + new_answers[2] +
|
370 |
""" \n
|
371 |
-
+ """ + new_answers[3])
|
|
|
|
|
|
|
|
|
|
|
372 |
}
|
373 |
-
s.click(fn = submit_email, inputs = [email], outputs = [question, login, selection, passage_display])
|
374 |
|
375 |
# Starts on question, switches to evaluation after the user answers
|
376 |
user_eval.launch()
|
|
|
288 |
with gr.Row(equal_height = False, visible = False) as question:
|
289 |
with gr.Column():
|
290 |
gr.Markdown("**Question**")
|
291 |
+
q_text = gr.Markdown(current_question["question"])
|
292 |
a = gr.Button(current_question["answers"][0])
|
293 |
b = gr.Button(current_question["answers"][1])
|
294 |
c = gr.Button(current_question["answers"][2])
|
|
|
368 |
""" \n
|
369 |
+ """ + new_answers[2] +
|
370 |
""" \n
|
371 |
+
+ """ + new_answers[3]),
|
372 |
+
q_text: gr.Markdown(current_question["question"]),
|
373 |
+
a: gr.Button(current_question["answers"][0]),
|
374 |
+
b: gr.Button(current_question["answers"][1]),
|
375 |
+
c: gr.Button(current_question["answers"][2]),
|
376 |
+
d: gr.Button(current_question["answers"][3])
|
377 |
}
|
378 |
+
s.click(fn = submit_email, inputs = [email], outputs = [question, login, selection, passage_display, q_text, a, b, c, d])
|
379 |
|
380 |
# Starts on question, switches to evaluation after the user answers
|
381 |
user_eval.launch()
|