Spaces:
Running
Running
Download start_gpu.bat from murapolo/decis-demo: direct link, hf CLI and curl.
- Browser
- Download file 583 Bytes
-
https://huggingface.co/spaces/murapolo/decis-demo/resolve/main/start_gpu.bat
- Command line
-
hf download hf://spaces/murapolo/decis-demo/start_gpu.bat
-
curl -L -o start_gpu.bat https://huggingface.co/spaces/murapolo/decis-demo/resolve/main/start_gpu.bat
583 Bytes
| @echo off | |
| cd /d "%~dp0" | |
| set "PY=" | |
| where python >nul 2>&1 && set "PY=python" | |
| if not defined PY where py >nul 2>&1 && set "PY=py -3" | |
| if not defined PY ( echo [ERR] python not found & pause & exit /b 1 ) | |
| %PY% check_deps.py gpu >nul 2>&1 | |
| if not errorlevel 1 ( %PY% app.py & goto done ) | |
| if exist .venv\pyvenv.cfg findstr /C:"include-system-site-packages = true" .venv\pyvenv.cfg >nul 2>&1 || rmdir /s /q .venv | |
| if not exist .venv %PY% -m venv .venv --system-site-packages | |
| ".venv\Scripts\pip.exe" install -r requirements.txt onnxruntime-gpu | |
| ".venv\Scripts\python.exe" app.py | |
| :done | |
| pause | |