html test
Browse files
app.py
CHANGED
@@ -93,8 +93,12 @@ def create_interface():
|
|
93 |
instruction, response_1, response_2, label_1, label_2, pair_name = get_random_row()
|
94 |
|
95 |
with gr.Blocks(theme=gr.themes.Default()) as demo:
|
96 |
-
gr.
|
97 |
-
|
|
|
|
|
|
|
|
|
98 |
gr.Markdown("This interface has been created to compare the performance of the human-like LLMs developed by our team with the models on which they were trained. The results of this study will be presented in a paper. Please ensure that your responses are fair and accurate when casting your vote and selecting the appropriate answer. We thank you for your contributions on behalf of the research team.")
|
99 |
gr.Markdown("## Instructions")
|
100 |
gr.Markdown(
|
@@ -107,7 +111,17 @@ def create_interface():
|
|
107 |
label_1_state = gr.State(label_1)
|
108 |
label_2_state = gr.State(label_2)
|
109 |
pair_name_state = gr.State(pair_name)
|
110 |
-
question_display = gr.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
111 |
with gr.Row():
|
112 |
with gr.Column():
|
113 |
response_1_display = gr.HTML(format_response_1_html(response_1))
|
@@ -118,7 +132,6 @@ def create_interface():
|
|
118 |
["Answer 1", "Answer 2"],
|
119 |
label="Which answer is better?",
|
120 |
interactive=True,
|
121 |
-
min_width=400
|
122 |
)
|
123 |
submit_btn = gr.Button("Submit Choice")
|
124 |
|
|
|
93 |
instruction, response_1, response_2, label_1, label_2, pair_name = get_random_row()
|
94 |
|
95 |
with gr.Blocks(theme=gr.themes.Default()) as demo:
|
96 |
+
gr.HTML("""
|
97 |
+
<div style="text-align: center;">
|
98 |
+
<h1>Human-Likeness Voting System</h1>
|
99 |
+
<img src="https://cdn-avatars.huggingface.co/v1/production/uploads/63da3d7ae697e5898cb86854/H-vpXOX6KZu01HnV87Jk5.jpeg" alt="logo" style="max-width: 100%; height: auto;">
|
100 |
+
</div>
|
101 |
+
""")
|
102 |
gr.Markdown("This interface has been created to compare the performance of the human-like LLMs developed by our team with the models on which they were trained. The results of this study will be presented in a paper. Please ensure that your responses are fair and accurate when casting your vote and selecting the appropriate answer. We thank you for your contributions on behalf of the research team.")
|
103 |
gr.Markdown("## Instructions")
|
104 |
gr.Markdown(
|
|
|
111 |
label_1_state = gr.State(label_1)
|
112 |
label_2_state = gr.State(label_2)
|
113 |
pair_name_state = gr.State(pair_name)
|
114 |
+
question_display = gr.HTML(
|
115 |
+
value=f"""
|
116 |
+
<div style="text-align: center; font-size: 24px; font-weight: bold; margin-top: 20px;">
|
117 |
+
Question:
|
118 |
+
</div>
|
119 |
+
<div style="text-align: center; font-size: 20px; margin-top: 10px;">
|
120 |
+
{instruction}
|
121 |
+
</div>
|
122 |
+
"""
|
123 |
+
)
|
124 |
+
|
125 |
with gr.Row():
|
126 |
with gr.Column():
|
127 |
response_1_display = gr.HTML(format_response_1_html(response_1))
|
|
|
132 |
["Answer 1", "Answer 2"],
|
133 |
label="Which answer is better?",
|
134 |
interactive=True,
|
|
|
135 |
)
|
136 |
submit_btn = gr.Button("Submit Choice")
|
137 |
|