Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -313,8 +313,86 @@ custom_css = """
|
|
| 313 |
margin-bottom: 10px !important;
|
| 314 |
}
|
| 315 |
|
| 316 |
-
.gradio-container-5-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 317 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 318 |
|
| 319 |
# --- UI: HTML Head Content ---
|
| 320 |
html_head_content = '''
|
|
|
|
| 313 |
margin-bottom: 10px !important;
|
| 314 |
}
|
| 315 |
|
| 316 |
+
.gradio-container-5-42-0 .gradio-chatbot .message.user .markdown {
|
| 317 |
+
background-color: #a69189 !important;
|
| 318 |
+
color: #120f0e !important;
|
| 319 |
+
border-radius: 8px !important;
|
| 320 |
+
padding: 12px 16px !important;
|
| 321 |
+
border: 1pt solid #59524f !important;
|
| 322 |
+
max-width: 70%;
|
| 323 |
+
margin-left: auto;
|
| 324 |
+
margin-right: 0;
|
| 325 |
+
word-wrap: break-word;
|
| 326 |
+
font-weight: 400 !important;
|
| 327 |
+
margin-bottom: 10px !important;
|
| 328 |
+
}
|
| 329 |
+
|
| 330 |
+
/* Input controls styling */
|
| 331 |
+
.input-controls {
|
| 332 |
+
padding: 15px 20px !important;
|
| 333 |
+
background-color: rgb(240, 236, 230) !important;
|
| 334 |
+
border-top: 1pt solid #59524f;
|
| 335 |
+
flex-shrink: 0 !important;
|
| 336 |
+
}
|
| 337 |
+
|
| 338 |
+
.input-textbox textarea {
|
| 339 |
+
background-color: #f0ece6 !important;
|
| 340 |
+
border: 1pt solid #59524f !important;
|
| 341 |
+
border-radius: 6px !important;
|
| 342 |
+
color: #120f0e !important;
|
| 343 |
+
font-family: "Oswald", sans-serif !important;
|
| 344 |
+
padding: 10px !important;
|
| 345 |
+
resize: none !important;
|
| 346 |
+
}
|
| 347 |
+
|
| 348 |
+
.input-textbox textarea:focus {
|
| 349 |
+
border-color: #f09c7d !important;
|
| 350 |
+
box-shadow: 0 0 0 2px rgba(240, 156, 125, 0.2) !important;
|
| 351 |
+
}
|
| 352 |
+
|
| 353 |
+
.button-column {
|
| 354 |
+
margin-left: 10px !important;
|
| 355 |
+
min-width: 80px !important;
|
| 356 |
+
}
|
| 357 |
+
|
| 358 |
+
.send-button, .clear-button {
|
| 359 |
+
background-color: #f09c7d !important;
|
| 360 |
+
color: #120f0e !important;
|
| 361 |
+
border: 1pt solid #59524f !important;
|
| 362 |
+
border-radius: 6px !important;
|
| 363 |
+
font-family: "Oswald", sans-serif !important;
|
| 364 |
+
font-weight: 500 !important;
|
| 365 |
+
padding: 8px 16px !important;
|
| 366 |
+
margin-bottom: 5px !important;
|
| 367 |
+
width: 100% !important;
|
| 368 |
+
}
|
| 369 |
|
| 370 |
+
.send-button:hover, .clear-button:hover {
|
| 371 |
+
background-color: #e8895a !important;
|
| 372 |
+
border-color: #4a3f3c !important;
|
| 373 |
+
}
|
| 374 |
+
|
| 375 |
+
/* Responsive design */
|
| 376 |
+
@media (max-width: 768px) {
|
| 377 |
+
.gradio-container-5-42-0 .gradio-chatbot .message.bot .markdown,
|
| 378 |
+
.gradio-container-5-42-0 .gradio-chatbot .message.user .markdown {
|
| 379 |
+
max-width: 85%;
|
| 380 |
+
}
|
| 381 |
+
|
| 382 |
+
.input-controls {
|
| 383 |
+
padding: 10px !important;
|
| 384 |
+
}
|
| 385 |
+
|
| 386 |
+
.title-header {
|
| 387 |
+
padding: 8px 15px !important;
|
| 388 |
+
height: 50px !important;
|
| 389 |
+
}
|
| 390 |
+
|
| 391 |
+
.title-header h1 {
|
| 392 |
+
font-size: 1.3rem !important;
|
| 393 |
+
}
|
| 394 |
+
}
|
| 395 |
+
"""
|
| 396 |
|
| 397 |
# --- UI: HTML Head Content ---
|
| 398 |
html_head_content = '''
|