Spaces:
Sleeping
Sleeping
elibrowne
commited on
Commit
·
f583e02
1
Parent(s):
d5c3c24
Improving text spacing
Browse files
app.py
CHANGED
@@ -170,8 +170,8 @@ with gr.Blocks(theme = theme) as user_eval:
|
|
170 |
else:
|
171 |
return {
|
172 |
selection: gr.HTML("""
|
173 |
-
<h2> Retrieved Passage </h2>
|
174 |
-
""" + passage_texts[step]),
|
175 |
eval_0: gr.Radio(value = None),
|
176 |
eval_1: gr.Slider(value = 3),
|
177 |
eval_2: gr.Slider(value = 3),
|
@@ -187,8 +187,8 @@ with gr.Blocks(theme = theme) as user_eval:
|
|
187 |
# Step 11: guaranteed to be generation
|
188 |
return {
|
189 |
selection: gr.HTML("""
|
190 |
-
<h2> Autogenerated Response </h2>
|
191 |
-
""" + generation),
|
192 |
eval_helps: gr.Slider(value = 1),
|
193 |
eval_satisfied: gr.Slider(value = 1)
|
194 |
}
|
@@ -206,8 +206,8 @@ with gr.Blocks(theme = theme) as user_eval:
|
|
206 |
if step == 12:
|
207 |
return {
|
208 |
selection: gr.HTML("""
|
209 |
-
<h2> Retrieved Passage </h2>
|
210 |
-
""" + gold_passage),
|
211 |
forward_btn: gr.Textbox(),
|
212 |
eval_helps: gr.Slider(value = 1),
|
213 |
eval_satisfied: gr.Slider(value = 1)
|
@@ -215,8 +215,8 @@ with gr.Blocks(theme = theme) as user_eval:
|
|
215 |
elif step == 13:
|
216 |
return {
|
217 |
selection: gr.HTML("""
|
218 |
-
<h2> Autogenerated Response </h2>
|
219 |
-
""" + gold_passage_generation),
|
220 |
forward_btn: gr.Textbox(),
|
221 |
eval_helps: gr.Slider(value = 1),
|
222 |
eval_satisfied: gr.Slider(value = 1)
|
@@ -295,7 +295,6 @@ with gr.Blocks(theme = theme) as user_eval:
|
|
295 |
|
296 |
with gr.Row() as login:
|
297 |
with gr.Column():
|
298 |
-
gr.Markdown("---")
|
299 |
gr.Markdown("# Enter email to start")
|
300 |
gr.Markdown("Thank you so much for your participation in our study! We're using emails to keep track of which questions you've answered and which you haven't seen. Use the same email every time to keep your progress saved. :)")
|
301 |
email = gr.Textbox(label = "Email", placeholder = "[email protected]")
|
|
|
170 |
else:
|
171 |
return {
|
172 |
selection: gr.HTML("""
|
173 |
+
<h2> Retrieved Passage </h2>
|
174 |
+
<p> """ + passage_texts[step] + "</p>"),
|
175 |
eval_0: gr.Radio(value = None),
|
176 |
eval_1: gr.Slider(value = 3),
|
177 |
eval_2: gr.Slider(value = 3),
|
|
|
187 |
# Step 11: guaranteed to be generation
|
188 |
return {
|
189 |
selection: gr.HTML("""
|
190 |
+
<h2> Autogenerated Response </h2>
|
191 |
+
<p> """ + generation + "</p>"),
|
192 |
eval_helps: gr.Slider(value = 1),
|
193 |
eval_satisfied: gr.Slider(value = 1)
|
194 |
}
|
|
|
206 |
if step == 12:
|
207 |
return {
|
208 |
selection: gr.HTML("""
|
209 |
+
<h2> Retrieved Passage </h2>
|
210 |
+
<p> """ + gold_passage + "</p>"),
|
211 |
forward_btn: gr.Textbox(),
|
212 |
eval_helps: gr.Slider(value = 1),
|
213 |
eval_satisfied: gr.Slider(value = 1)
|
|
|
215 |
elif step == 13:
|
216 |
return {
|
217 |
selection: gr.HTML("""
|
218 |
+
<h2> Autogenerated Response </h2>
|
219 |
+
<p> """ + gold_passage_generation + "</p>"),
|
220 |
forward_btn: gr.Textbox(),
|
221 |
eval_helps: gr.Slider(value = 1),
|
222 |
eval_satisfied: gr.Slider(value = 1)
|
|
|
295 |
|
296 |
with gr.Row() as login:
|
297 |
with gr.Column():
|
|
|
298 |
gr.Markdown("# Enter email to start")
|
299 |
gr.Markdown("Thank you so much for your participation in our study! We're using emails to keep track of which questions you've answered and which you haven't seen. Use the same email every time to keep your progress saved. :)")
|
300 |
email = gr.Textbox(label = "Email", placeholder = "[email protected]")
|