Spaces:
Running
on
Zero
Running
on
Zero
File size: 1,832 Bytes
a602628 |
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 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
@echo off
echo ============================================
echo HuggingFace Spaces Deployment Script
echo ============================================
echo.
REM Check if Git is installed
where git >nul 2>nul
if %ERRORLEVEL% NEQ 0 (
echo ERROR: Git is not installed or not in PATH
echo Please install Git from: https://git-scm.com/download/win
pause
exit /b 1
)
REM Check if HuggingFace CLI is installed
where huggingface-cli >nul 2>nul
if %ERRORLEVEL% NEQ 0 (
echo HuggingFace CLI not found. Installing...
pip install huggingface_hub
)
echo.
echo Step 1: Login to HuggingFace
echo =============================
echo You'll need your HuggingFace token from:
echo https://huggingface.co/settings/tokens
echo.
huggingface-cli login
echo.
echo Step 2: Enter Space Name
echo ========================
set /p SPACE_NAME="Enter your Space name (e.g., ace-step-custom): "
echo.
echo Step 3: Creating Space...
echo =========================
huggingface-cli repo create %SPACE_NAME% --type space --space_sdk gradio
echo.
echo Step 4: Uploading Files...
echo ==========================
huggingface-cli upload %SPACE_NAME% . --repo-type space --exclude ".git/*" --exclude "__pycache__/*" --exclude "*.pyc" --exclude "outputs/*" --exclude "timelines/*" --exclude "lora_training/*" --exclude "models/*" --exclude "logs/*"
echo.
echo ============================================
echo Deployment Complete!
echo ============================================
echo.
echo Your Space is being built at:
echo https://huggingface.co/spaces/%USERNAME%/%SPACE_NAME%
echo.
echo Next steps:
echo 1. Visit your Space URL
echo 2. Go to Settings and enable GPU (A10G Small recommended)
echo 3. Wait for build to complete (5-10 minutes)
echo 4. Test all three tabs
echo.
echo For detailed instructions, see DEPLOYMENT.md
echo.
pause
|