@echo off setlocal py -3 --version >nul 2>&1 if errorlevel 1 goto try_python set "UPLOAD_PYTHON=py -3" goto run :try_python python --version >nul 2>&1 if errorlevel 1 goto missing_python set "UPLOAD_PYTHON=python" :run %UPLOAD_PYTHON% "%~dp0scripts\upload_dataset.py" %* set "UPLOAD_EXIT=%ERRORLEVEL%" if "%UPLOAD_EXIT%"=="0" goto finish echo If a dependency is missing, run: %UPLOAD_PYTHON% -m pip install --upgrade huggingface_hub echo Authenticate before uploading with: hf auth login goto finish :missing_python echo Python 3 is missing. Install Python 3, then reopen this script. set "UPLOAD_EXIT=1" :finish echo. pause exit /b %UPLOAD_EXIT%