add web terminal demo
Browse files- owl/app.py +2 -0
- owl/app_en.py +2 -0
- owl/run_terminal_zh.py +1 -3
owl/app.py
CHANGED
@@ -41,6 +41,7 @@ SCRIPTS = {
|
|
41 |
"GAIA Roleplaying": "run_gaia_roleplaying.py",
|
42 |
"OpenAI Compatible": "run_openai_compatiable_model.py",
|
43 |
"Ollama": "run_ollama.py",
|
|
|
44 |
}
|
45 |
|
46 |
# 脚本描述
|
@@ -53,6 +54,7 @@ SCRIPT_DESCRIPTIONS = {
|
|
53 |
"GAIA Roleplaying": "GAIA基准测试实现,用于评估模型能力",
|
54 |
"OpenAI Compatible": "使用兼容OpenAI API的第三方模型,支持自定义API端点",
|
55 |
"Ollama": "使用Ollama API",
|
|
|
56 |
}
|
57 |
|
58 |
# 环境变量分组
|
|
|
41 |
"GAIA Roleplaying": "run_gaia_roleplaying.py",
|
42 |
"OpenAI Compatible": "run_openai_compatiable_model.py",
|
43 |
"Ollama": "run_ollama.py",
|
44 |
+
"Terminal": "run_terminal_zh.py",
|
45 |
}
|
46 |
|
47 |
# 脚本描述
|
|
|
54 |
"GAIA Roleplaying": "GAIA基准测试实现,用于评估模型能力",
|
55 |
"OpenAI Compatible": "使用兼容OpenAI API的第三方模型,支持自定义API端点",
|
56 |
"Ollama": "使用Ollama API",
|
57 |
+
"Terminal": "使用本地终端执行python文件",
|
58 |
}
|
59 |
|
60 |
# 环境变量分组
|
owl/app_en.py
CHANGED
@@ -41,6 +41,7 @@ SCRIPTS = {
|
|
41 |
"GAIA Roleplaying": "run_gaia_roleplaying.py",
|
42 |
"OpenAI Compatible": "run_openai_compatiable_model.py",
|
43 |
"Ollama": "run_ollama.py",
|
|
|
44 |
}
|
45 |
|
46 |
# Script descriptions
|
@@ -53,6 +54,7 @@ SCRIPT_DESCRIPTIONS = {
|
|
53 |
"GAIA Roleplaying": "GAIA benchmark implementation, used to evaluate model capabilities",
|
54 |
"OpenAI Compatible": "Uses third-party models compatible with OpenAI API, supports custom API endpoints",
|
55 |
"Ollama": "Uses Ollama API",
|
|
|
56 |
}
|
57 |
|
58 |
# Environment variable groups
|
|
|
41 |
"GAIA Roleplaying": "run_gaia_roleplaying.py",
|
42 |
"OpenAI Compatible": "run_openai_compatiable_model.py",
|
43 |
"Ollama": "run_ollama.py",
|
44 |
+
"Terminal": "run_terminal.py",
|
45 |
}
|
46 |
|
47 |
# Script descriptions
|
|
|
54 |
"GAIA Roleplaying": "GAIA benchmark implementation, used to evaluate model capabilities",
|
55 |
"OpenAI Compatible": "Uses third-party models compatible with OpenAI API, supports custom API endpoints",
|
56 |
"Ollama": "Uses Ollama API",
|
57 |
+
"Terminal": "Uses local terminal to execute python files",
|
58 |
}
|
59 |
|
60 |
# Environment variable groups
|
owl/run_terminal_zh.py
CHANGED
@@ -106,9 +106,7 @@ def main():
|
|
106 |
# Example research question
|
107 |
question = f"""打开百度搜索,总结一下camel-ai的camel框架的github star、fork数目等,并把数字用plot包写成python文件保存到"+{os.path.join
|
108 |
(base_dir, 'final_output')}+",用本地终端执行python文件显示图出来给我"""
|
109 |
-
|
110 |
-
# (base_dir, 'logs')}' with content: 'INFO: Application started successfully at
|
111 |
-
# 2024-03-10'"""
|
112 |
# Construct and run the society
|
113 |
society = construct_society(question)
|
114 |
answer, chat_history, token_count = run_society(society)
|
|
|
106 |
# Example research question
|
107 |
question = f"""打开百度搜索,总结一下camel-ai的camel框架的github star、fork数目等,并把数字用plot包写成python文件保存到"+{os.path.join
|
108 |
(base_dir, 'final_output')}+",用本地终端执行python文件显示图出来给我"""
|
109 |
+
|
|
|
|
|
110 |
# Construct and run the society
|
111 |
society = construct_society(question)
|
112 |
answer, chat_history, token_count = run_society(society)
|