Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -393,8 +393,12 @@ custom_css = """
|
|
| 393 |
padding: 20px;
|
| 394 |
}
|
| 395 |
|
| 396 |
-
/* Chatbot styling */
|
| 397 |
-
.gradio-chatbot
|
|
|
|
|
|
|
|
|
|
|
|
|
| 398 |
background-color: #d9d1ce !important;
|
| 399 |
border: 1pt solid #59524f !important;
|
| 400 |
border-radius: 6px !important;
|
|
@@ -402,6 +406,31 @@ custom_css = """
|
|
| 402 |
font-family: "Oswald", sans-serif !important;
|
| 403 |
}
|
| 404 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 405 |
/* Message styling - model messages same as send button color */
|
| 406 |
.gradio-chatbot .message.bot .markdown {
|
| 407 |
background-color: #f09c7d !important;
|
|
@@ -617,7 +646,9 @@ def create_interface():
|
|
| 617 |
show_share_button=False,
|
| 618 |
avatar_images=None,
|
| 619 |
height=880,
|
| 620 |
-
elem_classes=["chat-container"]
|
|
|
|
|
|
|
| 621 |
)
|
| 622 |
|
| 623 |
# Row 3: Input Section
|
|
|
|
| 393 |
padding: 20px;
|
| 394 |
}
|
| 395 |
|
| 396 |
+
/* Chatbot styling - multiple selectors to ensure it applies */
|
| 397 |
+
.gradio-chatbot,
|
| 398 |
+
.chatbot,
|
| 399 |
+
div[data-testid="chatbot"],
|
| 400 |
+
.gradio-chatbot > div,
|
| 401 |
+
.gradio-chatbot .scroll-hide {
|
| 402 |
background-color: #d9d1ce !important;
|
| 403 |
border: 1pt solid #59524f !important;
|
| 404 |
border-radius: 6px !important;
|
|
|
|
| 406 |
font-family: "Oswald", sans-serif !important;
|
| 407 |
}
|
| 408 |
|
| 409 |
+
/* Force chatbot container background */
|
| 410 |
+
.gradio-chatbot .overflow-y-auto {
|
| 411 |
+
background-color: #d9d1ce !important;
|
| 412 |
+
}
|
| 413 |
+
|
| 414 |
+
/* Target the actual chat messages container */
|
| 415 |
+
.gradio-chatbot > div > div {
|
| 416 |
+
background-color: #d9d1ce !important;
|
| 417 |
+
}
|
| 418 |
+
|
| 419 |
+
/* Target by element ID */
|
| 420 |
+
#main-chatbot {
|
| 421 |
+
background-color: #d9d1ce !important;
|
| 422 |
+
}
|
| 423 |
+
|
| 424 |
+
/* Additional fallback selectors */
|
| 425 |
+
[data-testid="chatbot"] {
|
| 426 |
+
background-color: #d9d1ce !important;
|
| 427 |
+
}
|
| 428 |
+
|
| 429 |
+
/* Force all chatbot related elements */
|
| 430 |
+
.gradio-chatbot * {
|
| 431 |
+
background-color: inherit !important;
|
| 432 |
+
}
|
| 433 |
+
|
| 434 |
/* Message styling - model messages same as send button color */
|
| 435 |
.gradio-chatbot .message.bot .markdown {
|
| 436 |
background-color: #f09c7d !important;
|
|
|
|
| 646 |
show_share_button=False,
|
| 647 |
avatar_images=None,
|
| 648 |
height=880,
|
| 649 |
+
elem_classes=["chat-container"],
|
| 650 |
+
container=True,
|
| 651 |
+
elem_id="main-chatbot"
|
| 652 |
)
|
| 653 |
|
| 654 |
# Row 3: Input Section
|