diff options
author | SwiftyOS <craigswift13@gmail.com> | 2023-09-28 18:38:55 +0200 |
---|---|---|
committer | SwiftyOS <craigswift13@gmail.com> | 2023-09-28 18:38:55 +0200 |
commit | 959e1304d11f126c5a6914c3bb886549638d6b35 (patch) | |
tree | fd1d5c8342543892c8a3127a8244e4329bc7aca8 /cli.py | |
parent | forge, remove helicone from .env.example (diff) | |
download | Auto-GPT-959e1304d11f126c5a6914c3bb886549638d6b35.tar.gz Auto-GPT-959e1304d11f126c5a6914c3bb886549638d6b35.tar.bz2 Auto-GPT-959e1304d11f126c5a6914c3bb886549638d6b35.zip |
forge - Added unified run command
Diffstat (limited to 'cli.py')
-rw-r--r-- | cli.py | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -266,10 +266,15 @@ def start(agent_name): script_dir = os.path.dirname(os.path.realpath(__file__)) agent_dir = os.path.join(script_dir, f"autogpts/{agent_name}") run_command = os.path.join(agent_dir, "run") - if os.path.exists(agent_dir) and os.path.isfile(run_command): + run_bench_command = os.path.join(agent_dir, "run_benchmark") + if os.path.exists(agent_dir) and os.path.isfile(run_command) and os.path.isfile(run_bench_command): os.chdir(agent_dir) + setup_process = subprocess.Popen(["./setup"], cwd=agent_dir) + setup_process.wait() + subprocess.Popen(["./run_benchmark", "serve"], cwd=agent_dir) + click.echo(f"Benchmark Server starting please wait...") subprocess.Popen(["./run"], cwd=agent_dir) - click.echo(f"Agent '{agent_name}' started") + click.echo(f"Agent '{agent_name}' starting please wait...") elif not os.path.exists(agent_dir): click.echo( click.style( |