#!/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."