File size: 701 Bytes
f8cab22
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/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"