From b0bbacaacb8a4ee00a5e9a348f9773a274259946 Mon Sep 17 00:00:00 2001 From: hoshi-hiyouga Date: Tue, 18 Feb 2025 18:27:57 +0800 Subject: [PATCH] [webui] update css (#6985) Former-commit-id: 302ecb00fef56d1ccc9203cb46f242841fefab47 --- src/llamafactory/webui/components/chatbot.py | 2 +- src/llamafactory/webui/css.py | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/llamafactory/webui/components/chatbot.py b/src/llamafactory/webui/components/chatbot.py index 05cc4a1f..314a711d 100644 --- a/src/llamafactory/webui/components/chatbot.py +++ b/src/llamafactory/webui/components/chatbot.py @@ -76,7 +76,7 @@ def create_chat_box( submit_btn = gr.Button(variant="primary") with gr.Column(scale=1): - max_new_tokens = gr.Slider(minimum=8, maximum=4096, value=512, step=1) + max_new_tokens = gr.Slider(minimum=8, maximum=8192, value=1024, step=1) top_p = gr.Slider(minimum=0.01, maximum=1.0, value=0.7, step=0.01) temperature = gr.Slider(minimum=0.01, maximum=1.5, value=0.95, step=0.01) clear_btn = gr.Button() diff --git a/src/llamafactory/webui/css.py b/src/llamafactory/webui/css.py index a48a21c5..b7e4c357 100644 --- a/src/llamafactory/webui/css.py +++ b/src/llamafactory/webui/css.py @@ -25,12 +25,15 @@ CSS = r""" } .thinking-summary span { - border: 1px solid #e0e0e0 !important; border-radius: 4px !important; padding: 4px !important; cursor: pointer !important; font-size: 14px !important; - background: #333333 !important; + background: rgb(245, 245, 245) !important; +} + +.dark .thinking-summary span { + background: rgb(73, 73, 73) !important; } .thinking-container {