Spaces:
Runtime error
Runtime error
Download deploy.sh from wchen22/touchdown-compression-classifier: direct link, hf CLI and curl.
- Browser
- Download file 473 Bytes
-
https://huggingface.co/spaces/wchen22/touchdown-compression-classifier/resolve/main/deploy.sh
- Command line
-
hf download hf://spaces/wchen22/touchdown-compression-classifier/deploy.sh
-
curl -L -o deploy.sh https://huggingface.co/spaces/wchen22/touchdown-compression-classifier/resolve/main/deploy.sh
473 Bytes
| set -euo pipefail | |
| SPACE_ID="${1:-}" | |
| if [[ -z "${SPACE_ID}" ]]; then | |
| echo "usage: $0 <namespace/touchdown-compression-classifier>" >&2 | |
| exit 2 | |
| fi | |
| if ! command -v hf >/dev/null 2>&1; then | |
| echo "hf CLI not found. Install with: curl -LsSf https://hf.co/cli/install.sh | bash -s" >&2 | |
| exit 2 | |
| fi | |
| hf auth whoami >/dev/null | |
| hf repos create "${SPACE_ID}" --type space --space-sdk docker --exist-ok | |
| hf upload "${SPACE_ID}" "$(dirname "$0")" --type space | |