fix gradio version and setup

This commit is contained in:
finny
2026-01-23 11:09:31 +08:00
parent a36c6de64c
commit 80246078cc
5 changed files with 5 additions and 8 deletions

View File

@@ -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"
),

View File

@@ -628,7 +628,6 @@ def create_ui():
placeholder="请输入您的问题...",
label="问题",
elem_id="question_input",
show_copy_button=True,
)
# 增强版模块选择下拉菜单

View File

@@ -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ファイルを実行してください。",
)

View File

@@ -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)}")

View File

@@ -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",