Commit ·
49586ec
1
Parent(s): 7d59f1b
Settings: equalize Textbox/Dropdown height, flatten Slider wrapper, default Temperature to 1.0
Browse files
app.py
CHANGED
|
@@ -515,6 +515,14 @@ gradio-app > div {
|
|
| 515 |
color: var(--q-text) !important;
|
| 516 |
font-family: "Manrope", ui-sans-serif, system-ui, sans-serif !important;
|
| 517 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 518 |
[class*="gradio-container"] textarea::placeholder,
|
| 519 |
[class*="gradio-container"] input::placeholder { color: #94A3B8 !important; }
|
| 520 |
[class*="gradio-container"] textarea:focus,
|
|
@@ -617,6 +625,20 @@ gradio-app > div {
|
|
| 617 |
}
|
| 618 |
|
| 619 |
/* === Sliders ============================================================ */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 620 |
[class*="gradio-container"] input[type="range"] {
|
| 621 |
-webkit-appearance: none;
|
| 622 |
appearance: none;
|
|
@@ -1800,7 +1822,7 @@ with gr.Blocks(
|
|
| 1800 |
label="Temperature",
|
| 1801 |
minimum=0.0,
|
| 1802 |
maximum=1.5,
|
| 1803 |
-
value=
|
| 1804 |
step=0.1,
|
| 1805 |
)
|
| 1806 |
|
|
|
|
| 515 |
color: var(--q-text) !important;
|
| 516 |
font-family: "Manrope", ui-sans-serif, system-ui, sans-serif !important;
|
| 517 |
}
|
| 518 |
+
/* Make the Model Textbox match the Memory Strategy Dropdown's height (46px outer = 44px content + 2*1px border). */
|
| 519 |
+
.section-card [data-testid="textbox"] textarea,
|
| 520 |
+
.section-card [data-testid="textbox"] input {
|
| 521 |
+
min-height: 44px !important;
|
| 522 |
+
padding: 11px 14px !important;
|
| 523 |
+
line-height: 1.4 !important;
|
| 524 |
+
box-sizing: border-box !important;
|
| 525 |
+
}
|
| 526 |
[class*="gradio-container"] textarea::placeholder,
|
| 527 |
[class*="gradio-container"] input::placeholder { color: #94A3B8 !important; }
|
| 528 |
[class*="gradio-container"] textarea:focus,
|
|
|
|
| 625 |
}
|
| 626 |
|
| 627 |
/* === Sliders ============================================================ */
|
| 628 |
+
/* Flatten the Slider's outer wrapper — Gradio paints a rectangular block
|
| 629 |
+
around the label + track + value-input by default; remove it. */
|
| 630 |
+
.section-card .gradio-slider,
|
| 631 |
+
.section-card .gradio-slider > div,
|
| 632 |
+
.section-card .gradio-slider .form,
|
| 633 |
+
.section-card .gradio-slider .gr-form,
|
| 634 |
+
.section-card .gradio-slider .wrap,
|
| 635 |
+
.section-card .gradio-slider .container,
|
| 636 |
+
.section-card .gradio-slider .head {
|
| 637 |
+
background: transparent !important;
|
| 638 |
+
border: 0 !important;
|
| 639 |
+
box-shadow: none !important;
|
| 640 |
+
padding: 0 !important;
|
| 641 |
+
}
|
| 642 |
[class*="gradio-container"] input[type="range"] {
|
| 643 |
-webkit-appearance: none;
|
| 644 |
appearance: none;
|
|
|
|
| 1822 |
label="Temperature",
|
| 1823 |
minimum=0.0,
|
| 1824 |
maximum=1.5,
|
| 1825 |
+
value=1.0,
|
| 1826 |
step=0.1,
|
| 1827 |
)
|
| 1828 |
|