Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -442,13 +442,13 @@ with gr.Blocks(theme="default", css=CSS_STYLES) as demo:
|
|
| 442 |
with gr.Group():
|
| 443 |
human_input = gr.TextArea(
|
| 444 |
label="👩 Human Input",
|
| 445 |
-
lines=
|
| 446 |
placeholder="Enter the human message here..."
|
| 447 |
)
|
| 448 |
|
| 449 |
ai_response = gr.TextArea(
|
| 450 |
label="🤖 AI Response",
|
| 451 |
-
lines=
|
| 452 |
placeholder="Enter the AI response here..."
|
| 453 |
)
|
| 454 |
|
|
@@ -465,10 +465,10 @@ with gr.Blocks(theme="default", css=CSS_STYLES) as demo:
|
|
| 465 |
model_name_a = gr.Markdown("*Model: Hidden*")
|
| 466 |
with gr.Row():
|
| 467 |
with gr.Column(scale=1, min_width=100): # Fixed narrow width for score
|
| 468 |
-
score_a = gr.Textbox(label="Score", lines=
|
| 469 |
vote_a = gr.Button("Vote A", variant="primary", visible=False)
|
| 470 |
with gr.Column(scale=9, min_width=400): # Wider width for critique
|
| 471 |
-
critique_a = gr.TextArea(label="Critique", lines=
|
| 472 |
|
| 473 |
# Spacing div that's visible only when tie button is hidden
|
| 474 |
spacing_div = gr.HTML('<div style="height: 42px;"></div>', visible=True, elem_id="spacing-div")
|
|
@@ -484,10 +484,10 @@ with gr.Blocks(theme="default", css=CSS_STYLES) as demo:
|
|
| 484 |
model_name_b = gr.Markdown("*Model: Hidden*")
|
| 485 |
with gr.Row():
|
| 486 |
with gr.Column(scale=1, min_width=100): # Fixed narrow width for score
|
| 487 |
-
score_b = gr.Textbox(label="Score", lines=
|
| 488 |
vote_b = gr.Button("Vote B", variant="primary", visible=False)
|
| 489 |
with gr.Column(scale=9, min_width=400): # Wider width for critique
|
| 490 |
-
critique_b = gr.TextArea(label="Critique", lines=
|
| 491 |
# Place Vote B button directly under Judge B
|
| 492 |
|
| 493 |
gr.Markdown("<br>")
|
|
|
|
| 442 |
with gr.Group():
|
| 443 |
human_input = gr.TextArea(
|
| 444 |
label="👩 Human Input",
|
| 445 |
+
lines=13,
|
| 446 |
placeholder="Enter the human message here..."
|
| 447 |
)
|
| 448 |
|
| 449 |
ai_response = gr.TextArea(
|
| 450 |
label="🤖 AI Response",
|
| 451 |
+
lines=13,
|
| 452 |
placeholder="Enter the AI response here..."
|
| 453 |
)
|
| 454 |
|
|
|
|
| 465 |
model_name_a = gr.Markdown("*Model: Hidden*")
|
| 466 |
with gr.Row():
|
| 467 |
with gr.Column(scale=1, min_width=100): # Fixed narrow width for score
|
| 468 |
+
score_a = gr.Textbox(label="Score", lines=6, interactive=False)
|
| 469 |
vote_a = gr.Button("Vote A", variant="primary", visible=False)
|
| 470 |
with gr.Column(scale=9, min_width=400): # Wider width for critique
|
| 471 |
+
critique_a = gr.TextArea(label="Critique", lines=8, interactive=False)
|
| 472 |
|
| 473 |
# Spacing div that's visible only when tie button is hidden
|
| 474 |
spacing_div = gr.HTML('<div style="height: 42px;"></div>', visible=True, elem_id="spacing-div")
|
|
|
|
| 484 |
model_name_b = gr.Markdown("*Model: Hidden*")
|
| 485 |
with gr.Row():
|
| 486 |
with gr.Column(scale=1, min_width=100): # Fixed narrow width for score
|
| 487 |
+
score_b = gr.Textbox(label="Score", lines=6, interactive=False)
|
| 488 |
vote_b = gr.Button("Vote B", variant="primary", visible=False)
|
| 489 |
with gr.Column(scale=9, min_width=400): # Wider width for critique
|
| 490 |
+
critique_b = gr.TextArea(label="Critique", lines=8, interactive=False)
|
| 491 |
# Place Vote B button directly under Judge B
|
| 492 |
|
| 493 |
gr.Markdown("<br>")
|