Update app.py
Browse files
app.py
CHANGED
@@ -453,16 +453,8 @@ 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 |
-
|
458 |
-
title="Trek Asistanı",
|
459 |
-
theme="default",
|
460 |
-
type="messages",
|
461 |
-
flagging_mode="manual",
|
462 |
-
flagging_options=["Doğru", "Yanlış", "Emin değilim", "Diğer"],
|
463 |
-
save_history=True,
|
464 |
-
autoscroll=True,
|
465 |
-
custom_css = """
|
466 |
.gradio-container {
|
467 |
font-size: 0.9rem !important; /* Genel yazı boyutunu %10 küçült */
|
468 |
}
|
@@ -473,6 +465,18 @@ demo = gr.ChatInterface(
|
|
473 |
font-size: 0.85rem !important; /* Mesaj yazma alanındaki yazıları küçült */
|
474 |
}
|
475 |
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
476 |
)
|
477 |
|
478 |
if __name__ == "__main__":
|
|
|
453 |
scheduler_thread = threading.Thread(target=run_scheduler, args=(global_chat_history,), daemon=True)
|
454 |
scheduler_thread.start()
|
455 |
|
456 |
+
# Gradio arayüzüne ufak bir CSS değişikliği ekleyin
|
457 |
+
custom_css = """
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
458 |
.gradio-container {
|
459 |
font-size: 0.9rem !important; /* Genel yazı boyutunu %10 küçült */
|
460 |
}
|
|
|
465 |
font-size: 0.85rem !important; /* Mesaj yazma alanındaki yazıları küçült */
|
466 |
}
|
467 |
"""
|
468 |
+
|
469 |
+
# ChatInterface'i oluştururken CSS ekleyin
|
470 |
+
demo = gr.ChatInterface(
|
471 |
+
fn=chat_fn,
|
472 |
+
title="Trek Asistanı",
|
473 |
+
theme="default",
|
474 |
+
type="messages",
|
475 |
+
flagging_mode="manual",
|
476 |
+
flagging_options=["Doğru", "Yanlış", "Emin değilim", "Diğer"],
|
477 |
+
save_history=True,
|
478 |
+
autoscroll=True,
|
479 |
+
css=custom_css # CSS'i buraya ekleyin
|
480 |
)
|
481 |
|
482 |
if __name__ == "__main__":
|