Files
Auto-GPT/agbenchmark/benchmarks.py
2023-08-07 16:13:12 +02:00

18 lines
335 B
Python

# sourcery skip: avoid-global-variables
import sys
from dotenv import load_dotenv
def run(task: str) -> None:
"""Runs the agent for benchmarking"""
load_dotenv()
if __name__ == "__main__":
if len(sys.argv) != 2:
print("Usage: python script.py <task>")
sys.exit(1)
task = sys.argv[-1]
run(task)