From 80246078ccd4e0db1690af12150f5ce675883f7b Mon Sep 17 00:00:00 2001 From: finny Date: Fri, 23 Jan 2026 11:09:31 +0800 Subject: [PATCH] fix gradio version and setup --- owl/webapp.py | 4 ++-- owl/webapp_backup.py | 1 - owl/webapp_jp.py | 1 - owl/webapp_zh.py | 5 ++--- pyproject.toml | 2 +- 5 files changed, 5 insertions(+), 8 deletions(-) diff --git a/owl/webapp.py b/owl/webapp.py index 56f7552..7ee0053 100644 --- a/owl/webapp.py +++ b/owl/webapp.py @@ -867,7 +867,7 @@ def create_ui(): logs2, ) - with gr.Blocks(title="OWL", theme=gr.themes.Soft(primary_hue="blue")) as app: + with gr.Blocks(title="OWL") as app: gr.Markdown( """ # 🦉 OWL Multi-Agent Collaboration System @@ -1092,7 +1092,6 @@ def create_ui(): placeholder="Please enter your question...", label="Question", elem_id="question_input", - show_copy_button=True, value="Open Brave search, summarize the github stars, fork counts, etc. of camel-ai's camel framework, and write the numbers into a python file using the plot package, save it locally, and run the generated python file. Note: You have been provided with the necessary tools to complete this task.", ) @@ -1306,6 +1305,7 @@ def main(): app.queue() app.launch( share=False, + theme=gr.themes.Soft(primary_hue="blue"), favicon_path=os.path.join( os.path.dirname(__file__), "assets", "owl-favicon.ico" ), diff --git a/owl/webapp_backup.py b/owl/webapp_backup.py index a34fc2b..ce19bed 100644 --- a/owl/webapp_backup.py +++ b/owl/webapp_backup.py @@ -628,7 +628,6 @@ def create_ui(): placeholder="请输入您的问题...", label="问题", elem_id="question_input", - show_copy_button=True, ) # 增强版模块选择下拉菜单 diff --git a/owl/webapp_jp.py b/owl/webapp_jp.py index d1c70ee..1db2a29 100644 --- a/owl/webapp_jp.py +++ b/owl/webapp_jp.py @@ -1084,7 +1084,6 @@ def create_ui(): placeholder="質問を入力してください...", label="質問", elem_id="question_input", - show_copy_button=True, value="Googleで検索して、camel-aiのcamelフレームワークのGitHubスター数、フォーク数などを要約し、その数値をplotパッケージを使ってPythonファイルに書き込み、ローカルに保存して、生成したPythonファイルを実行してください。", ) 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)}") diff --git a/pyproject.toml b/pyproject.toml index bdcaa21..0ffc927 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,7 +23,7 @@ keywords = [ dependencies = [ "camel-ai[owl]==0.2.57", "docx2markdown>=0.1.1", - "gradio>=3.50.2", + "gradio>=6.4.0", "mcp-simple-arxiv==0.2.2", "mcp-server-fetch==2025.1.17", "xmltodict>=0.14.2",