Download scripts/dev.sh from Leon4gr45/openweb: direct link, hf CLI and curl.
- Browser
- Download file 451 Bytes
-
https://huggingface.co/spaces/Leon4gr45/openweb/resolve/main/scripts/dev.sh
- Command line
-
hf download hf://spaces/Leon4gr45/openweb/scripts/dev.sh
-
curl -L -o dev.sh https://huggingface.co/spaces/Leon4gr45/openweb/resolve/main/scripts/dev.sh
451 Bytes
| # Remote-only development. Does not start any inference services. | |
| set -euo pipefail | |
| cd "$(dirname "$0")/.." | |
| children=() | |
| cleanup() { for child in "${children[@]}"; do kill "$child" 2>/dev/null || true; done; } | |
| trap cleanup EXIT INT TERM | |
| "${PYTHON:-python}" -m uvicorn vrag.api:app --host 127.0.0.1 --port 8000 & | |
| children+=("$!") | |
| npm --prefix web run dev -- --hostname 0.0.0.0 --port 7860 & | |
| children+=("$!") | |
| wait -n "${children[@]}" | |