@echo off setlocal if "%~1"=="" ( echo Usage: tools\deploy_space_windows.bat HF_USERNAME SPACE_NAME exit /b 1 ) if "%~2"=="" ( echo Usage: tools\deploy_space_windows.bat HF_USERNAME SPACE_NAME exit /b 1 ) set HF_USER=%~1 set SPACE=%~2 set REPO=https://huggingface.co/spaces/%HF_USER%/%SPACE% echo Login Hugging Face if needed... huggingface-cli whoami >nul 2>&1 || huggingface-cli login echo Cloning %REPO% ... if exist "%SPACE%" rmdir /s /q "%SPACE%" git clone %REPO% "%SPACE%" robocopy . "%SPACE%" /E /XD .git "%SPACE%" /XF hf_bila_translator_space.zip cd "%SPACE%" git add . git commit -m "Deploy Bila Translator Realtime Space" git push endlocal