retroenv / openenv /start.sh
AdithyaSK's picture
AdithyaSK HF Staff
Serve RetroEnv snapshot 350672d1218e
c8c36ec verified
Raw History Blame Contribute Delete
404 Bytes
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")"
# Fetch or check the task bundle, then point the server at the directory prepare.py printed.
prepared="$(python prepare.py | tail -n 1)"
export RETROENV_BENCHMARK_DIR="${RETROENV_BENCHMARK_DIR:-${prepared:-${RETROENV_PREPARED_DIR:-prepared}}}"
exec uvicorn retroenv_openenv.server:app --host 0.0.0.0 --port "${PORT:-8000}" --ws-ping-timeout 600