From af1315da1ce890273fd9ef3b81c8b9cc6dc9c057 Mon Sep 17 00:00:00 2001 From: "GARRETTBOOK\\Garrett" <16325504+gu-minmin@user.noreply.gitee.com> Date: Tue, 20 Jan 2026 10:30:57 +0800 Subject: [PATCH] Refactor UI theme settings in webapp_zh.py - Removed explicit theme setting in Blocks initialization. - Restored theme setting in app launch method. - Removed unnecessary copy button from question input. --- owl/webapp_zh.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/owl/webapp_zh.py b/owl/webapp_zh.py index d379334..1524cc1 100644 --- a/owl/webapp_zh.py +++ b/owl/webapp_zh.py @@ -842,7 +842,7 @@ def create_ui(): logs2, ) - with gr.Blocks(theme=gr.themes.Soft(primary_hue="blue")) as app: + with gr.Blocks() as app: gr.Markdown( """ # 🦉 OWL 多智能体协作系统 @@ -1067,7 +1067,6 @@ def create_ui(): placeholder="请输入您的问题...", label="问题", elem_id="question_input", - show_copy_button=True, value="打开百度搜索,总结一下camel-ai的camel框架的github star、fork数目等,并把数字用plot包写成python文件保存到本地,并运行生成的python文件。", ) @@ -1273,7 +1272,7 @@ def main(): app = create_ui() app.queue() - app.launch(share=False) + app.launch(share=False, theme=gr.themes.Soft(primary_hue="blue")) except Exception as e: logging.error(f"启动应用程序时发生错误: {str(e)}") print(f"启动应用程序时发生错误: {str(e)}")