Spaces:
Running on Zero
Running on Zero
Download scripts/start.sh from FanLR/GroundingPI: direct link, hf CLI and curl.
- Browser
- Download file 326 Bytes
-
https://huggingface.co/spaces/FanLR/GroundingPI/resolve/main/scripts/start.sh
- Command line
-
hf download hf://spaces/FanLR/GroundingPI/scripts/start.sh
-
curl -L -o start.sh https://huggingface.co/spaces/FanLR/GroundingPI/resolve/main/scripts/start.sh
326 Bytes
| set -euo pipefail | |
| project_dir="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd)" | |
| cd "$project_dir" | |
| if [[ ! -x .venv/bin/python ]]; then | |
| python3 -m venv .venv | |
| .venv/bin/python -m pip install --upgrade pip | |
| .venv/bin/python -m pip install -r requirements.txt | |
| fi | |
| exec .venv/bin/python space_app.py | |