Spaces:
Sleeping
Sleeping
Download setup.sh from vinayedula/RefDiffNet: direct link, hf CLI and curl.
- Browser
- Download file 545 Bytes
-
https://huggingface.co/spaces/vinayedula/RefDiffNet/resolve/1a98f915915bd4a50a0a404e02d56451a01ffe21/setup.sh
- Command line
-
hf download hf://spaces/vinayedula/RefDiffNet@1a98f915915bd4a50a0a404e02d56451a01ffe21/setup.sh
-
curl -L -o setup.sh https://huggingface.co/spaces/vinayedula/RefDiffNet/resolve/1a98f915915bd4a50a0a404e02d56451a01ffe21/setup.sh
545 Bytes
| # Hugging Face Spaces: install vendored custom Ultralytics before app starts. | |
| set -euo pipefail | |
| cd "$(dirname "$0")" | |
| # HF base image may install huggingface_hub 1.x; Gradio 4.x needs <1.0 (HfFolder) | |
| pip install -q "huggingface_hub>=0.23.0,<1.0" | |
| export YOLO_CONFIG_DIR="${YOLO_CONFIG_DIR:-/tmp/Ultralytics}" | |
| mkdir -p "${YOLO_CONFIG_DIR}" | |
| if [[ -d vendor ]]; then | |
| pip install -q -e ./vendor | |
| echo "Installed custom ultralytics from ./vendor" | |
| else | |
| echo "WARN: vendor/ missing — run prepare_space.sh before deploying" | |
| fi | |