Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

benchmark-fix

Merwane Hamadib08a588c4fec
diff --git a/benchmark/benchmark/start_benchmark.py b/benchmark/benchmark/start_benchmark.py
index 4235e67a5c..b7cda4bd4c 100644
--- a/benchmark/benchmark/start_benchmark.py
+++ b/benchmark/benchmark/start_benchmark.py
@@ -430,6 +430,3 @@ def version():
# latest_report = json.load(file)
# return latest_report
-
-if __name__ == "__main__":
- cli()
diff --git a/benchmark/pyproject.toml b/benchmark/pyproject.toml
index 7fd2efcf0d..caeee5fccc 100644
--- a/benchmark/pyproject.toml
+++ b/benchmark/pyproject.toml
@@ -88,3 +88,6 @@ ensure_newline_before_comments = true
line_length = 88
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
skip_glob = [".tox", "__pycache__", "*.pyc", "venv*/*", "reports", "venv", "env", "node_modules", ".env", ".venv", "dist", "agent/*", "agbenchmark/challenges/*"]
+
+[tool.poetry.scripts]
+agbenchmark = "benchmark.start_benchmark:cli"