Spaces:
Running on Zero
Running on Zero
Bobby
Claude Fable 5
Add AGENTS.md (runbook + custom-domain failure mode), local setup script, ignore venv/outputs
f90d805 Download setup_local.sh from broyang/CrowdCounter: direct link, hf CLI and curl.
- Browser
- Download file 429 Bytes
-
https://huggingface.co/spaces/broyang/CrowdCounter/resolve/main/setup_local.sh
- Command line
-
hf download hf://spaces/broyang/CrowdCounter/setup_local.sh
-
curl -L -o setup_local.sh https://huggingface.co/spaces/broyang/CrowdCounter/resolve/main/setup_local.sh
429 Bytes
| set -euo pipefail | |
| cd "$(dirname "$0")" | |
| PYTHON="${PYTHON:-python3}" | |
| echo "==> Creating venv + installing deps for local (CPU) use" | |
| [ -d venv ] || "$PYTHON" -m venv venv | |
| ./venv/bin/python -m pip install --upgrade pip | |
| ./venv/bin/pip install torch -r requirements.txt | |
| echo "==> Done. Model weights + patched PET are already vendored (via git-lfs)." | |
| echo " Run: ./venv/bin/python count.py path/to/image.jpg" | |