Unlimited-TTS / deploy.bat
TGPro1
Expose Generate API
4a982aa
@echo off
echo ========================================================
echo DEPLOYMENT SCRIPT FOR UNLIMITED TTS SPACE
echo ========================================================
echo.
echo This script will deploy the modified code (Limit: 50,000 chars)
echo to your NEW Hugging Face Space.
echo.
echo PREREQUISITES:
echo 1. Create a NEW Space on Hugging Face (SDK: Gradio).
echo 2. Make sure you are logged in to Git or have your Access Token ready.
echo.
set /p SPACE_URL="Paste your NEW Space Git URL (e.g., https://huggingface.co/spaces/MyName/MySpace): "
if "%SPACE_URL%"=="" goto error
echo.
echo Updating Remote Origin...
git remote remove origin
git remote add origin %SPACE_URL%
echo.
echo Committing changes...
git add .
git commit -m "Unlimited Characters Patch (Agent)"
echo.
echo Pushing to new Space (Authentication may be required)...
git push --force -u origin main
echo.
echo ========================================================
echo DEPLOYMENT COMPLETE (Check for errors above)
echo ========================================================
pause
exit /b
:error
echo Error: URL cannot be empty.
pause