spad_for_vision / push_to_hf.sh
$P@D$3RV£R
Automated script commit from CUSTOM_DEPLOY.py - by AMA - Demo of CI/CD (2026-02-19 06:04:57)
252372a
Raw
History Blame Contribute Delete
533 Bytes
#!/bin/bash
# Push to Hugging Face Space (mvplus/spad_for_vision). Run from a terminal where SPV_HF_TOKEN is set.
# Remote stays username-only; token is used only for this push.
set -e
if [ -z "$SPV_HF_TOKEN" ]; then
echo "Error: SPV_HF_TOKEN is not set. Export it first, e.g.:"
echo " export SPV_HF_TOKEN='hf_...'"
exit 1
fi
cd "$(dirname "$0")"
git push "https://mvplus:${SPV_HF_TOKEN}@huggingface.co/spaces/mvplus/spad_for_vision" main --force
echo "Push to https://huggingface.co/spaces/mvplus/spad_for_vision completed."