Spaces:
Sleeping
Sleeping
elibrowne commited on
Commit ·
31d31bd
1
Parent(s): 1d3a96d
Beautify
Browse files
app.py
CHANGED
|
@@ -77,8 +77,8 @@ with gr.Blocks() as user_eval:
|
|
| 77 |
# Passage text
|
| 78 |
with gr.Column(scale = 2) as passages:
|
| 79 |
selection = gr.HTML("""
|
| 80 |
-
<h2> Retrieved Passage </h2>
|
| 81 |
-
""" + passage_texts[0])
|
| 82 |
line = gr.Markdown("---")
|
| 83 |
answers_text[answer_id] = "**" + answers_text[answer_id] + "**"
|
| 84 |
passage_display = gr.Markdown("""
|
|
@@ -134,7 +134,7 @@ with gr.Blocks() as user_eval:
|
|
| 134 |
}
|
| 135 |
|
| 136 |
btn_p.click(fn = next_p, inputs = [eval_1, eval_2, eval_3], outputs = [selection, scores_p, scores_g])
|
| 137 |
-
btn_g.click(fn = next_g, inputs = [
|
| 138 |
|
| 139 |
# Question and answering dynamics
|
| 140 |
with gr.Row(equal_height = False, visible = False) as question:
|
|
|
|
| 77 |
# Passage text
|
| 78 |
with gr.Column(scale = 2) as passages:
|
| 79 |
selection = gr.HTML("""
|
| 80 |
+
<h2> Retrieved Passage </h2>
|
| 81 |
+
<p> """ + passage_texts[0] + "</p>")
|
| 82 |
line = gr.Markdown("---")
|
| 83 |
answers_text[answer_id] = "**" + answers_text[answer_id] + "**"
|
| 84 |
passage_display = gr.Markdown("""
|
|
|
|
| 134 |
}
|
| 135 |
|
| 136 |
btn_p.click(fn = next_p, inputs = [eval_1, eval_2, eval_3], outputs = [selection, scores_p, scores_g])
|
| 137 |
+
btn_g.click(fn = next_g, inputs = [eval_satisfied], outputs = [selection])
|
| 138 |
|
| 139 |
# Question and answering dynamics
|
| 140 |
with gr.Row(equal_height = False, visible = False) as question:
|