Skip to content

Commit 8024607

Browse files
author
finny
committed
fix gradio version and setup
1 parent a36c6de commit 8024607

File tree

5 files changed

+5
-8
lines changed

5 files changed

+5
-8
lines changed

owl/webapp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ def process_in_background():
867867
logs2,
868868
)
869869

870-
with gr.Blocks(title="OWL", theme=gr.themes.Soft(primary_hue="blue")) as app:
870+
with gr.Blocks(title="OWL") as app:
871871
gr.Markdown(
872872
"""
873873
# 🦉 OWL Multi-Agent Collaboration System
@@ -1092,7 +1092,6 @@ def process_in_background():
10921092
placeholder="Please enter your question...",
10931093
label="Question",
10941094
elem_id="question_input",
1095-
show_copy_button=True,
10961095
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.",
10971096
)
10981097

@@ -1306,6 +1305,7 @@ def main():
13061305
app.queue()
13071306
app.launch(
13081307
share=False,
1308+
theme=gr.themes.Soft(primary_hue="blue"),
13091309
favicon_path=os.path.join(
13101310
os.path.dirname(__file__), "assets", "owl-favicon.ico"
13111311
),

owl/webapp_backup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,6 @@ def create_ui():
628628
placeholder="请输入您的问题...",
629629
label="问题",
630630
elem_id="question_input",
631-
show_copy_button=True,
632631
)
633632

634633
# 增强版模块选择下拉菜单

owl/webapp_jp.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1084,7 +1084,6 @@ def process_in_background():
10841084
placeholder="質問を入力してください...",
10851085
label="質問",
10861086
elem_id="question_input",
1087-
show_copy_button=True,
10881087
value="Googleで検索して、camel-aiのcamelフレームワークのGitHubスター数、フォーク数などを要約し、その数値をplotパッケージを使ってPythonファイルに書き込み、ローカルに保存して、生成したPythonファイルを実行してください。",
10891088
)
10901089

owl/webapp_zh.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,7 @@ def process_in_background():
842842
logs2,
843843
)
844844

845-
with gr.Blocks(theme=gr.themes.Soft(primary_hue="blue")) as app:
845+
with gr.Blocks() as app:
846846
gr.Markdown(
847847
"""
848848
# 🦉 OWL 多智能体协作系统
@@ -1067,7 +1067,6 @@ def process_in_background():
10671067
placeholder="请输入您的问题...",
10681068
label="问题",
10691069
elem_id="question_input",
1070-
show_copy_button=True,
10711070
value="打开百度搜索,总结一下camel-ai的camel框架的github star、fork数目等,并把数字用plot包写成python文件保存到本地,并运行生成的python文件。",
10721071
)
10731072

@@ -1273,7 +1272,7 @@ def main():
12731272
app = create_ui()
12741273

12751274
app.queue()
1276-
app.launch(share=False)
1275+
app.launch(share=False, theme=gr.themes.Soft(primary_hue="blue"))
12771276
except Exception as e:
12781277
logging.error(f"启动应用程序时发生错误: {str(e)}")
12791278
print(f"启动应用程序时发生错误: {str(e)}")

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ keywords = [
2323
dependencies = [
2424
"camel-ai[owl]==0.2.57",
2525
"docx2markdown>=0.1.1",
26-
"gradio>=3.50.2",
26+
"gradio>=6.4.0",
2727
"mcp-simple-arxiv==0.2.2",
2828
"mcp-server-fetch==2025.1.17",
2929
"xmltodict>=0.14.2",

0 commit comments

Comments
 (0)