mrrrme-emotion-ai / push-both.bat
michon's picture
avatar fix and llm model change
9ea638d
@echo off
setlocal enabledelayedexpansion
echo πŸ“ Checking for changes...
:: Check if there are changes
git status --short > temp_status.txt
set /p first_line=<temp_status.txt
del temp_status.txt
if defined first_line (
echo βœ… Changes detected, committing...
git add .
:: Prompt for commit message
set /p commit_msg="πŸ“ Commit message (press Enter for default): "
if "!commit_msg!"=="" (
:: Generate default commit message with date and time
for /f "tokens=1-3 delims=/ " %%a in ('date /t') do set mydate=%%c-%%a-%%b
for /f "tokens=1-2 delims=: " %%a in ('time /t') do set mytime=%%a:%%b
set commit_msg=Update !mydate! !mytime!
)
git commit -m "!commit_msg!"
) else (
echo βœ… No changes to commit
)
echo.
echo πŸš€ Pushing to GitHub...
git push origin main
echo.
echo πŸš€ Pushing to Hugging Face Spaces...
git push huggingface main --force
echo.
echo βœ… Successfully pushed to both GitHub and Hugging Face!
echo.
pause