Spaces:
Running
Running
Download pathqa-app.bat from Shubhambhandari/Pathify: direct link, hf CLI and curl.
- Browser
- Download file 655 Bytes
-
https://huggingface.co/spaces/Shubhambhandari/Pathify/resolve/main/pathqa-app.bat
- Command line
-
hf download hf://spaces/Shubhambhandari/Pathify/pathqa-app.bat
-
curl -L -o pathqa-app.bat https://huggingface.co/spaces/Shubhambhandari/Pathify/resolve/main/pathqa-app.bat
655 Bytes
| @echo off | |
| REM PathQA one-command launcher (Windows). | |
| REM pathqa-app.bat start the app and open the browser | |
| REM pathqa-app.bat demo patch QA demo | |
| REM pathqa-app.bat slide-demo whole-slide QA demo | |
| setlocal | |
| set DIR=%~dp0 | |
| cd /d "%DIR%" | |
| if not exist ".venv" ( | |
| echo [PathQA] first run: creating .venv and installing requirements... | |
| python -m venv .venv | |
| call .venv\Scripts\pip install --upgrade pip | |
| call .venv\Scripts\pip install -r requirements.txt | |
| ) | |
| set PYTHONPATH=%DIR%;%DIR%backend;%PYTHONPATH% | |
| if "%~1"=="" ( | |
| .venv\Scripts\python "%DIR%pathqa\cli.py" serve | |
| ) else ( | |
| .venv\Scripts\python "%DIR%pathqa\cli.py" %* | |
| ) | |
| endlocal | |