Download tools/deploy_space_windows.bat from CVNSS/dich: direct link, hf CLI and curl.
- Browser
- Download file 660 Bytes
-
https://huggingface.co/spaces/CVNSS/dich/resolve/main/tools/deploy_space_windows.bat
- Command line
-
hf download hf://spaces/CVNSS/dich/tools/deploy_space_windows.bat
-
curl -L -o deploy_space_windows.bat https://huggingface.co/spaces/CVNSS/dich/resolve/main/tools/deploy_space_windows.bat
660 Bytes
| @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 | |