Update app.py
Browse files
app.py
CHANGED
@@ -453,14 +453,14 @@ if not USE_SLOW_ECHO:
|
|
453 |
scheduler_thread = threading.Thread(target=run_scheduler, args=(global_chat_history,), daemon=True)
|
454 |
scheduler_thread.start()
|
455 |
|
456 |
-
#
|
457 |
custom_css = """
|
458 |
/* Genel font ayarları */
|
459 |
.gradio-container, .gradio-container *, .message-wrap, .message-wrap p, .message-wrap div,
|
460 |
button, input, select, textarea {
|
461 |
font-family: 'Segoe UI', 'SF Pro Text', 'Roboto', -apple-system, BlinkMacSystemFont,
|
462 |
'Helvetica Neue', Arial, sans-serif !important;
|
463 |
-
font-size: 0.8rem !important;
|
464 |
}
|
465 |
|
466 |
/* Input alanı için de aynı boyut */
|
@@ -470,7 +470,7 @@ button, input, select, textarea {
|
|
470 |
|
471 |
/* Başlıklar için özel boyutlar */
|
472 |
h1 {
|
473 |
-
font-size: 1.4rem !important;
|
474 |
font-weight: 600 !important;
|
475 |
}
|
476 |
|
@@ -484,6 +484,34 @@ h3 {
|
|
484 |
font-weight: 600 !important;
|
485 |
}
|
486 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
487 |
/* Daha net yazılar için text rendering */
|
488 |
* {
|
489 |
-webkit-font-smoothing: antialiased;
|
|
|
453 |
scheduler_thread = threading.Thread(target=run_scheduler, args=(global_chat_history,), daemon=True)
|
454 |
scheduler_thread.start()
|
455 |
|
456 |
+
# Chatbot kartları için arka plan renkleri değiştiren CSS
|
457 |
custom_css = """
|
458 |
/* Genel font ayarları */
|
459 |
.gradio-container, .gradio-container *, .message-wrap, .message-wrap p, .message-wrap div,
|
460 |
button, input, select, textarea {
|
461 |
font-family: 'Segoe UI', 'SF Pro Text', 'Roboto', -apple-system, BlinkMacSystemFont,
|
462 |
'Helvetica Neue', Arial, sans-serif !important;
|
463 |
+
font-size: 0.8rem !important;
|
464 |
}
|
465 |
|
466 |
/* Input alanı için de aynı boyut */
|
|
|
470 |
|
471 |
/* Başlıklar için özel boyutlar */
|
472 |
h1 {
|
473 |
+
font-size: 1.4rem !important;
|
474 |
font-weight: 600 !important;
|
475 |
}
|
476 |
|
|
|
484 |
font-weight: 600 !important;
|
485 |
}
|
486 |
|
487 |
+
/* Kart arka plan renkleri - görseldeki gibi */
|
488 |
+
/* Kullanıcı mesajları için mavi tonda arka plan */
|
489 |
+
.user-message, .user-message-highlighted {
|
490 |
+
background-color: #e9f5fe !important;
|
491 |
+
border-bottom-right-radius: 0 !important;
|
492 |
+
box-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
|
493 |
+
}
|
494 |
+
|
495 |
+
/* Bot mesajları için beyaz arka plan ve hafif kenarlık */
|
496 |
+
.bot-message, .bot-message-highlighted {
|
497 |
+
background-color: white !important;
|
498 |
+
border: 1px solid #e0e0e0 !important;
|
499 |
+
border-bottom-left-radius: 0 !important;
|
500 |
+
box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
|
501 |
+
}
|
502 |
+
|
503 |
+
/* Mesaj baloncuklarının köşe yuvarlatma değerleri */
|
504 |
+
.message-wrap {
|
505 |
+
border-radius: 12px !important;
|
506 |
+
margin: 0.5rem 0 !important;
|
507 |
+
max-width: 90% !important;
|
508 |
+
}
|
509 |
+
|
510 |
+
/* Sohbet alanının genel arka planı */
|
511 |
+
.chat-container, .gradio-container {
|
512 |
+
background-color: #f7f7f7 !important;
|
513 |
+
}
|
514 |
+
|
515 |
/* Daha net yazılar için text rendering */
|
516 |
* {
|
517 |
-webkit-font-smoothing: antialiased;
|