File size: 1,134 Bytes
4a982aa
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
@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