Spaces:
Paused
Paused
Download scripts/run-api.sh from sarransh/SpaceBridgeX: direct link, hf CLI and curl.
- Browser
- Download file 325 Bytes
-
https://huggingface.co/spaces/sarransh/SpaceBridgeX/resolve/main/scripts/run-api.sh
- Command line
-
hf download hf://spaces/sarransh/SpaceBridgeX/scripts/run-api.sh
-
curl -L -o run-api.sh https://huggingface.co/spaces/sarransh/SpaceBridgeX/resolve/main/scripts/run-api.sh
325 Bytes
| set -euo pipefail | |
| ROOT="$(cd "$(dirname "$0")/.." && pwd)" | |
| cd "$ROOT" | |
| PORT="${PORT:-8765}" | |
| if [[ ! -d .venv ]]; then | |
| python3 -m venv .venv | |
| .venv/bin/pip install -r backend/requirements.txt | |
| fi | |
| exec .venv/bin/uvicorn main:app --app-dir "$ROOT/backend" --host 127.0.0.1 --port "$PORT" --reload | |