ArthurZ's picture
ArthurZ HF Staff
wire /bisect endpoint + auto-clone transformers on first run
b021f63 verified
Raw
History Blame Contribute Delete
311 Bytes
#!/usr/bin/env bash
# Stdlib HTTP server: serves output/, exposes POST /refresh + GET /status,
# and runs the scheduled refresh loop in a thread inside server.py.
set -euo pipefail
export PORT="${PORT:-7860}"
export REFRESH_INTERVAL_SECONDS="${REFRESH_INTERVAL_SECONDS:-21600}"
exec python /app/app/server.py