Files
AutoGPT/autogpts/forge/run
merwanehamadi f4d319cee4 Refactor benchmark (#5247)
Signed-off-by: Merwane Hamadi <merwanehamadi@gmail.com>
2023-09-17 06:55:20 -07:00

18 lines
370 B
Bash
Executable File

#!/bin/bash
kill $(lsof -t -i :8000)
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 install
if [ ! -f .env ]; then
cp .env.example .env
echo "Please add your api keys to the .env file."
fi
poetry run python -m forge