Spaces:
Sleeping
Sleeping
Download setup.sh from vinayedula/RefDiffNet: direct link, hf CLI and curl.
- Browser
- Download file 650 Bytes
-
https://huggingface.co/spaces/vinayedula/RefDiffNet/resolve/56733799baafe8a047d213f27a91841c0d78fdff/setup.sh
- Command line
-
hf download hf://spaces/vinayedula/RefDiffNet@56733799baafe8a047d213f27a91841c0d78fdff/setup.sh
-
curl -L -o setup.sh https://huggingface.co/spaces/vinayedula/RefDiffNet/resolve/56733799baafe8a047d213f27a91841c0d78fdff/setup.sh
650 Bytes
| # Hugging Face Spaces: install deps before app starts (no ultralytics). | |
| set -euo pipefail | |
| cd "$(dirname "$0")" | |
| pip install -q -r requirements.txt | |
| pip install -q "numpy>=1.23.0,<2" "gradio-client==1.7.0" | |
| python -c "import gradio_patch; gradio_patch.apply(); print('gradio_patch OK')" | |
| export GRADIO_SERVER_NAME="${GRADIO_SERVER_NAME:-0.0.0.0}" | |
| export GRADIO_SERVER_PORT="${GRADIO_SERVER_PORT:-${PORT:-7860}}" | |
| export PRELOAD_MODEL="${PRELOAD_MODEL:-1}" | |
| export PREBACKBONE_ONLY_WEIGHTS="${PREBACKBONE_ONLY_WEIGHTS:-$(pwd)/weights/prebackbone_a11_ca.pt}" | |
| echo "RefDiffNet: standalone A11_CA (GRADIO_SERVER_NAME=${GRADIO_SERVER_NAME})" | |