Spaces:
Sleeping
Sleeping
Update app.py
#1
by Angelguava - opened
app.py
CHANGED
|
@@ -465,6 +465,58 @@ HEADER_HTML = """
|
|
| 465 |
<span class="pill">▸ SentenceTransformers</span>
|
| 466 |
</div>
|
| 467 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 468 |
"""
|
| 469 |
|
| 470 |
|
|
|
|
| 465 |
<span class="pill">▸ SentenceTransformers</span>
|
| 466 |
</div>
|
| 467 |
</div>
|
| 468 |
+
|
| 469 |
+
|
| 470 |
+
/* ===== API Key 區塊細修:避免輸入框太白 ===== */
|
| 471 |
+
#apikey-box,
|
| 472 |
+
#apikey-box > div,
|
| 473 |
+
#apikey-box .gradio-container,
|
| 474 |
+
#apikey-box .block,
|
| 475 |
+
#apikey-box .form {
|
| 476 |
+
background: #fff1cf !important;
|
| 477 |
+
border-color: #cf8a12 !important;
|
| 478 |
+
}
|
| 479 |
+
|
| 480 |
+
#apikey-box textarea,
|
| 481 |
+
#apikey-box input,
|
| 482 |
+
#apikey-box [data-testid="textbox"],
|
| 483 |
+
#apikey-box .wrap,
|
| 484 |
+
#apikey-box .container,
|
| 485 |
+
#apikey-box .input-container {
|
| 486 |
+
background: #302b25 !important;
|
| 487 |
+
color: #fff7e8 !important;
|
| 488 |
+
border: 1px solid #6f604f !important;
|
| 489 |
+
box-shadow: none !important;
|
| 490 |
+
}
|
| 491 |
+
|
| 492 |
+
#apikey-box textarea,
|
| 493 |
+
#apikey-box input {
|
| 494 |
+
min-height: 42px !important;
|
| 495 |
+
font-size: 14px !important;
|
| 496 |
+
font-weight: 700 !important;
|
| 497 |
+
}
|
| 498 |
+
|
| 499 |
+
#apikey-box textarea::placeholder,
|
| 500 |
+
#apikey-box input::placeholder {
|
| 501 |
+
color: #b9aea0 !important;
|
| 502 |
+
}
|
| 503 |
+
|
| 504 |
+
#apikey-box .disabled,
|
| 505 |
+
#apikey-box textarea:disabled,
|
| 506 |
+
#apikey-box input:disabled,
|
| 507 |
+
#apikey-box [aria-disabled="true"] {
|
| 508 |
+
background: #4a443c !important;
|
| 509 |
+
color: #fff7e8 !important;
|
| 510 |
+
opacity: 1 !important;
|
| 511 |
+
}
|
| 512 |
+
|
| 513 |
+
#apply-key-btn,
|
| 514 |
+
#apply-key-btn button {
|
| 515 |
+
background: #bd7b12 !important;
|
| 516 |
+
color: #ffffff !important;
|
| 517 |
+
border: none !important;
|
| 518 |
+
border-radius: 8px !important;
|
| 519 |
+
}
|
| 520 |
"""
|
| 521 |
|
| 522 |
|