Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -434,6 +434,13 @@ custom_css = """
|
|
| 434 |
.light-shadow {
|
| 435 |
box-shadow: 0 1px 4px 0 rgb(0 0 0 / 0.1) !important;
|
| 436 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 437 |
"""
|
| 438 |
|
| 439 |
# Create Gradio interface
|
|
@@ -467,7 +474,8 @@ with gr.Blocks(theme=Soft(font=[gr.themes.GoogleFont("Source Sans Pro"), "Arial"
|
|
| 467 |
prompt_display = gr.Textbox(
|
| 468 |
label="Prompt",
|
| 469 |
interactive=False,
|
| 470 |
-
lines=
|
|
|
|
| 471 |
)
|
| 472 |
|
| 473 |
# Row 2: Responses
|
|
@@ -475,14 +483,16 @@ with gr.Blocks(theme=Soft(font=[gr.themes.GoogleFont("Source Sans Pro"), "Arial"
|
|
| 475 |
response_a_display = gr.Textbox(
|
| 476 |
label="Response A",
|
| 477 |
interactive=False,
|
| 478 |
-
lines=
|
| 479 |
-
scale=1
|
|
|
|
| 480 |
)
|
| 481 |
response_b_display = gr.Textbox(
|
| 482 |
label="Response B",
|
| 483 |
interactive=False,
|
| 484 |
-
lines=
|
| 485 |
-
scale=1
|
|
|
|
| 486 |
)
|
| 487 |
|
| 488 |
# Row 3: Buttons
|
|
|
|
| 434 |
.light-shadow {
|
| 435 |
box-shadow: 0 1px 4px 0 rgb(0 0 0 / 0.1) !important;
|
| 436 |
}
|
| 437 |
+
.no-style-textbox input {
|
| 438 |
+
border: none !important;
|
| 439 |
+
box-shadow: none !important;
|
| 440 |
+
padding: 0 !important;
|
| 441 |
+
background: transparent !important;
|
| 442 |
+
outline: none !important;
|
| 443 |
+
}
|
| 444 |
"""
|
| 445 |
|
| 446 |
# Create Gradio interface
|
|
|
|
| 474 |
prompt_display = gr.Textbox(
|
| 475 |
label="Prompt",
|
| 476 |
interactive=False,
|
| 477 |
+
lines=1,
|
| 478 |
+
elem_classes="no-style-textbox"
|
| 479 |
)
|
| 480 |
|
| 481 |
# Row 2: Responses
|
|
|
|
| 483 |
response_a_display = gr.Textbox(
|
| 484 |
label="Response A",
|
| 485 |
interactive=False,
|
| 486 |
+
lines=1,
|
| 487 |
+
scale=1,
|
| 488 |
+
elem_classes="no-style-textbox"
|
| 489 |
)
|
| 490 |
response_b_display = gr.Textbox(
|
| 491 |
label="Response B",
|
| 492 |
interactive=False,
|
| 493 |
+
lines=1,
|
| 494 |
+
scale=1,
|
| 495 |
+
elem_classes="no-style-textbox"
|
| 496 |
)
|
| 497 |
|
| 498 |
# Row 3: Buttons
|