File size: 611 Bytes
c4135cc | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | #!/usr/bin/env bash
# Upload hub/ridge to the Hugging Face Hub.
# Run from anywhere; the script resolves its own location.
#
# Override the destination repo via the REPO env var (default:
# anonymous-4FAD/Ridge). Extra args are forwarded to ``huggingface-cli upload``.
#
# Requires:
# - huggingface-cli installed (it ships with huggingface_hub).
# - You are logged in: ``huggingface-cli login``.
set -euo pipefail
HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
REPO="${REPO:-anonymous-4FAD/Ridge}"
echo "Uploading ${HERE} -> ${REPO}"
huggingface-cli upload "$REPO" "$HERE" . --repo-type model "$@"
|