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.
Add command to reset environments (#5234)
merwanehamadi255c6a8f3a59
diff --git a/autogpts/forge/run b/autogpts/forge/runindex 8fa7719634..9397be943f 100755--- a/autogpts/forge/run+++ b/autogpts/forge/run@@ -2,6 +2,14 @@kill $(lsof -t -i :8000)kill $(lsof -t -i :8080)+ENV_PATH=$(poetry env info --path)+if [ -d "$ENV_PATH" ]; then+ rm -rf $ENV_PATH+ echo "Removed the poetry environment at $ENV_PATH."+else+ echo "No poetry environment found."+fi+poetry installif [ ! -f .env ]; thencp .env.example .env@@ -9,4 +17,4 @@ if [ ! -f .env ]; thenfipoetry run python -m forge &-agbenchmark serve & #voluntarily not using poetry run so that it runs in editable mode+poetry run agbenchmark serve &