Pathify / pathqa-app.bat
Shubhambhandari's picture
Upload folder using huggingface_hub
f93c1b8 verified
Raw History Blame Contribute Delete
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