File size: 567 Bytes
50ad077
 
 
 
 
 
 
 
 
 
 
 
 
 
6b1cb61
d78bf75
50ad077
d78bf75
 
50ad077
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env bash
set -euo pipefail

if [[ $# -ne 1 ]]; then
  echo "Usage: $0 USERNAME/worldtasks-human-eval" >&2
  exit 2
fi

SPACE_ID="$1"
SPACE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"

hf auth whoami >/dev/null
hf repos create "$SPACE_ID" --type space --space-sdk gradio --private --exist-ok
hf upload "$SPACE_ID" "$SPACE_DIR" . --type space \
  --delete "data/videos/**" \
  --delete ".DS_Store" \
  --exclude "results/*" \
  --exclude ".DS_Store" \
  --exclude "**/.DS_Store" \
  --exclude "__pycache__/*" \
  --exclude "scripts/__pycache__/*"