Chisael-Nexythra / upload_windows.bat
PureOne's picture
Upload CHISAEL-NEXYTHRA II research dataset v1.0.0
93a77c9 verified
Raw History Blame Contribute Delete
647 Bytes
@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%