Ridge / push.sh
anonymous-4FAD's picture
Upload 8 files
c4135cc verified
#!/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 "$@"