@echo off setlocal cd /d "%~dp0" echo AUREOLE-R - Public Hugging Face research release echo Destination: PureOne/AUREOLE-R-v3 unless overridden with --repo ACCOUNT/NAME echo Your token will be requested privately. Do not put it in this file. echo. if exist ".venv-publish\Scripts\python.exe" goto dependencies py -3 -c "import sys; sys.exit(sys.version_info[:2] < (3, 10))" >nul 2>&1 if errorlevel 1 goto try_python py -3 -m venv ".venv-publish" if errorlevel 1 goto failed goto dependencies :try_python python -c "import sys; sys.exit(sys.version_info[:2] < (3, 10))" >nul 2>&1 if errorlevel 1 goto no_python python -m venv ".venv-publish" if errorlevel 1 goto failed :dependencies ".venv-publish\Scripts\python.exe" scripts\publish_hf.py if errorlevel 1 goto failed ".venv-publish\Scripts\python.exe" -m pip install --disable-pip-version-check -r requirements-publish.txt if errorlevel 1 goto failed ".venv-publish\Scripts\python.exe" scripts\publish_hf.py --publish %* if errorlevel 1 goto failed echo. echo Complete. The verified public URL and commit are in publication_receipt.json. pause exit /b 0 :no_python echo Python 3.10 or later is required. Install Python from python.org, then run this file again. pause exit /b 1 :failed echo. echo Publication did not finish with verification. Read the message above and run this file again. pause exit /b 1