Spaces:
Sleeping
Sleeping
Commit
·
c85b71d
1
Parent(s):
0d64359
Auto-commit: push_to_space.bat updated
Browse files- push_to_space.bat +23 -0
push_to_space.bat
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@echo off
|
| 2 |
+
echo ========================================
|
| 3 |
+
echo PUSH TO HUGGING FACE SPACE
|
| 4 |
+
echo ========================================
|
| 5 |
+
echo.
|
| 6 |
+
echo Enter your NEW token from: https://huggingface.co/settings/tokens
|
| 7 |
+
echo.
|
| 8 |
+
set /p TOKEN="Paste token here: "
|
| 9 |
+
echo.
|
| 10 |
+
echo Pushing to Space...
|
| 11 |
+
echo.
|
| 12 |
+
cd /d D:\sand\docker-sandbox-space
|
| 13 |
+
git push https://Speedofmastery:%TOKEN%@huggingface.co/spaces/Speedofmastery/HMM main
|
| 14 |
+
echo.
|
| 15 |
+
if %ERRORLEVEL% == 0 (
|
| 16 |
+
echo ✅ SUCCESS! Files pushed to Space
|
| 17 |
+
echo Wait 2-5 minutes for Docker build
|
| 18 |
+
echo Then test: curl https://speedofmastery-hmm.hf.space/health
|
| 19 |
+
) else (
|
| 20 |
+
echo ❌ FAILED! Check token is valid with Write permission
|
| 21 |
+
)
|
| 22 |
+
echo.
|
| 23 |
+
pause
|