GraphShieldMistral / scripts /publish_space.sh
AXONVERTEX-AI-RESEARCH's picture
Publish GraphShieldMistral interactive explorer (part 5)
f8cab22 verified
Raw
History Blame Contribute Delete
701 Bytes
#!/usr/bin/env bash
set -euo pipefail
PYTHON_BIN="${PYTHON_BIN:-python3}"
command -v "$PYTHON_BIN" >/dev/null 2>&1 || {
echo "FAIL: python3 is required" >&2
exit 1
}
cd "$(dirname "$0")/.."
SPACE_REPO="${SPACE_REPO:-AXONVERTEX-AI-RESEARCH/GraphShieldMistral}"
export SPACE_REPO
"$PYTHON_BIN" scripts/verify_local.py
hf auth whoami
"$PYTHON_BIN" scripts/create_space.py
hf upload \
"$SPACE_REPO" \
. \
. \
--repo-type space \
--exclude ".git/*" \
--exclude "__pycache__/*" \
--exclude "*.pyc" \
--delete "*" \
--commit-message "Publish GraphShieldMistral interactive explorer"
echo
echo "PASS: Space content uploaded"
echo "Space: https://huggingface.co/spaces/$SPACE_REPO"