OpenHands/agent/build-and-run.sh
geohotstan fd277666f6
use argparse in main.py (#62)
* changed to argparse

* del useless import

* del print statement

* use shortened argument
2024-03-20 09:27:14 -04:00

10 lines
259 B
Bash
Executable File

#!/bin/bash
set -eo pipefail
rm -rf `pwd`/workspace
mkdir -p `pwd`/workspace
docker build -t control-loop .
docker run -e DEBUG=$DEBUG -e OPENAI_API_KEY=$OPENAI_API_KEY -v `pwd`/workspace:/workspace control-loop python /app/main.py -d /workspace -t "${1}"