#!/usr/bin/env bash # Hugging Face Spaces: install vendored custom Ultralytics before app starts. set -euo pipefail cd "$(dirname "$0")" 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