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 {