Spaces:
Sleeping
Sleeping
elibrowne
commited on
Commit
·
0c26604
1
Parent(s):
0d8264c
New toggle mechanism?
Browse files
app.py
CHANGED
@@ -87,6 +87,7 @@ user_id = "NO_ID"
|
|
87 |
|
88 |
with gr.Blocks(theme = theme) as user_eval:
|
89 |
# Title text introducing study
|
|
|
90 |
gr.HTML("""
|
91 |
<h1> Legal Retriever Evaluation Study </h1>
|
92 |
<p> Score the passages based on the question and provided answer choices. Detailed instructions are found <a href="https://docs.google.com/document/d/1ReODJ0hlXz_M3kE2UG1cwSRVoyDLQo88OvG71Gt8lUQ/edit?usp=sharing" target="_blank">here</a>. </p>
|
@@ -99,7 +100,6 @@ with gr.Blocks(theme = theme) as user_eval:
|
|
99 |
selection = gr.HTML("""
|
100 |
<h2> Retrieved Passage </h2>
|
101 |
<p> """ + passage_texts[0] + "</p>")
|
102 |
-
forward_btn = gr.HTML("1", visible = False, elem_id = "togglebutton")
|
103 |
line = gr.Markdown("---")
|
104 |
# New answers is able to render the Q and A with formatting. It doesn't change the contents of the answers.
|
105 |
new_answers = answers_text.copy()
|
|
|
87 |
|
88 |
with gr.Blocks(theme = theme) as user_eval:
|
89 |
# Title text introducing study
|
90 |
+
forward_btn = gr.HTML("unchanged", visible = False, elem_id = "togglebutton")
|
91 |
gr.HTML("""
|
92 |
<h1> Legal Retriever Evaluation Study </h1>
|
93 |
<p> Score the passages based on the question and provided answer choices. Detailed instructions are found <a href="https://docs.google.com/document/d/1ReODJ0hlXz_M3kE2UG1cwSRVoyDLQo88OvG71Gt8lUQ/edit?usp=sharing" target="_blank">here</a>. </p>
|
|
|
100 |
selection = gr.HTML("""
|
101 |
<h2> Retrieved Passage </h2>
|
102 |
<p> """ + passage_texts[0] + "</p>")
|
|
|
103 |
line = gr.Markdown("---")
|
104 |
# New answers is able to render the Q and A with formatting. It doesn't change the contents of the answers.
|
105 |
new_answers = answers_text.copy()
|