mirror of
https://github.com/camel-ai/owl.git
synced 2026-03-22 05:57:17 +08:00
fix gradio version and setup
This commit is contained in:
@@ -867,7 +867,7 @@ def create_ui():
|
|||||||
logs2,
|
logs2,
|
||||||
)
|
)
|
||||||
|
|
||||||
with gr.Blocks(title="OWL", theme=gr.themes.Soft(primary_hue="blue")) as app:
|
with gr.Blocks(title="OWL") as app:
|
||||||
gr.Markdown(
|
gr.Markdown(
|
||||||
"""
|
"""
|
||||||
# 🦉 OWL Multi-Agent Collaboration System
|
# 🦉 OWL Multi-Agent Collaboration System
|
||||||
@@ -1092,7 +1092,6 @@ def create_ui():
|
|||||||
placeholder="Please enter your question...",
|
placeholder="Please enter your question...",
|
||||||
label="Question",
|
label="Question",
|
||||||
elem_id="question_input",
|
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.",
|
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.queue()
|
||||||
app.launch(
|
app.launch(
|
||||||
share=False,
|
share=False,
|
||||||
|
theme=gr.themes.Soft(primary_hue="blue"),
|
||||||
favicon_path=os.path.join(
|
favicon_path=os.path.join(
|
||||||
os.path.dirname(__file__), "assets", "owl-favicon.ico"
|
os.path.dirname(__file__), "assets", "owl-favicon.ico"
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -628,7 +628,6 @@ def create_ui():
|
|||||||
placeholder="请输入您的问题...",
|
placeholder="请输入您的问题...",
|
||||||
label="问题",
|
label="问题",
|
||||||
elem_id="question_input",
|
elem_id="question_input",
|
||||||
show_copy_button=True,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# 增强版模块选择下拉菜单
|
# 增强版模块选择下拉菜单
|
||||||
|
|||||||
@@ -1084,7 +1084,6 @@ def create_ui():
|
|||||||
placeholder="質問を入力してください...",
|
placeholder="質問を入力してください...",
|
||||||
label="質問",
|
label="質問",
|
||||||
elem_id="question_input",
|
elem_id="question_input",
|
||||||
show_copy_button=True,
|
|
||||||
value="Googleで検索して、camel-aiのcamelフレームワークのGitHubスター数、フォーク数などを要約し、その数値をplotパッケージを使ってPythonファイルに書き込み、ローカルに保存して、生成したPythonファイルを実行してください。",
|
value="Googleで検索して、camel-aiのcamelフレームワークのGitHubスター数、フォーク数などを要約し、その数値をplotパッケージを使ってPythonファイルに書き込み、ローカルに保存して、生成したPythonファイルを実行してください。",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -842,7 +842,7 @@ def create_ui():
|
|||||||
logs2,
|
logs2,
|
||||||
)
|
)
|
||||||
|
|
||||||
with gr.Blocks(theme=gr.themes.Soft(primary_hue="blue")) as app:
|
with gr.Blocks() as app:
|
||||||
gr.Markdown(
|
gr.Markdown(
|
||||||
"""
|
"""
|
||||||
# 🦉 OWL 多智能体协作系统
|
# 🦉 OWL 多智能体协作系统
|
||||||
@@ -1067,7 +1067,6 @@ def create_ui():
|
|||||||
placeholder="请输入您的问题...",
|
placeholder="请输入您的问题...",
|
||||||
label="问题",
|
label="问题",
|
||||||
elem_id="question_input",
|
elem_id="question_input",
|
||||||
show_copy_button=True,
|
|
||||||
value="打开百度搜索,总结一下camel-ai的camel框架的github star、fork数目等,并把数字用plot包写成python文件保存到本地,并运行生成的python文件。",
|
value="打开百度搜索,总结一下camel-ai的camel框架的github star、fork数目等,并把数字用plot包写成python文件保存到本地,并运行生成的python文件。",
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -1273,7 +1272,7 @@ def main():
|
|||||||
app = create_ui()
|
app = create_ui()
|
||||||
|
|
||||||
app.queue()
|
app.queue()
|
||||||
app.launch(share=False)
|
app.launch(share=False, theme=gr.themes.Soft(primary_hue="blue"))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logging.error(f"启动应用程序时发生错误: {str(e)}")
|
logging.error(f"启动应用程序时发生错误: {str(e)}")
|
||||||
print(f"启动应用程序时发生错误: {str(e)}")
|
print(f"启动应用程序时发生错误: {str(e)}")
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ keywords = [
|
|||||||
dependencies = [
|
dependencies = [
|
||||||
"camel-ai[owl]==0.2.57",
|
"camel-ai[owl]==0.2.57",
|
||||||
"docx2markdown>=0.1.1",
|
"docx2markdown>=0.1.1",
|
||||||
"gradio>=3.50.2",
|
"gradio>=6.4.0",
|
||||||
"mcp-simple-arxiv==0.2.2",
|
"mcp-simple-arxiv==0.2.2",
|
||||||
"mcp-server-fetch==2025.1.17",
|
"mcp-server-fetch==2025.1.17",
|
||||||
"xmltodict>=0.14.2",
|
"xmltodict>=0.14.2",
|
||||||
|
|||||||
Reference in New Issue
Block a user