DevQueen/deepfake-server
0
1#!/usr/bin/env bash2# One-time push of this repo to your Hugging Face Docker Space.3set -euo pipefail4 5ROOT="$(cd "$(dirname "$0")/.." && pwd)"6cd "$ROOT"7 8SPACE="${1:-DevQueen/deepfake-server}"9 10if ! git remote get-url huggingface &>/dev/null; then11 git remote add huggingface "https://huggingface.co/spaces/${SPACE}"12 echo "Added remote: huggingface → https://huggingface.co/spaces/${SPACE}"13else14 echo "Remote 'huggingface' already exists."15fi16 17echo ""18echo "Next steps:"19echo ""20echo "1. Create a write token: https://huggingface.co/settings/tokens"21echo ""22echo "2. Login (one time):"23echo " pip install huggingface_hub[cli]"24echo " huggingface-cli login"25echo ""26echo "3. Push:"27echo " git push huggingface main"28echo ""29echo "Or use GitHub Actions (recommended): add HF_TOKEN secret on GitHub,"30echo "then every 'git push origin main' auto-deploys the Space."31echo "See huggingface/README.md"32 