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