27 lines
945 B
Batchfile
27 lines
945 B
Batchfile
@echo off
|
|
REM docchecker service: kit (shift mode) or regular venv (one-user mode)
|
|
cd /d %~dp0
|
|
set "SRV=%~dp0"
|
|
if not exist "%SRV%static" set "SRV=%~dp0.."
|
|
cd /d "%SRV%"
|
|
set "KIT=%~dp0..\..\kit"
|
|
set "PYEXE="
|
|
if exist "%KIT%\Python312\python.exe" (
|
|
set "PYEXE=%KIT%\Python312\python.exe"
|
|
set "PYTHONPATH=%KIT%\site"
|
|
)
|
|
if not defined PYEXE set "PYEXE=%~dp0venv\Scripts\python.exe"
|
|
if not exist "%PYEXE%" (
|
|
echo Python not found: run install.bat from delivery first
|
|
echo ^(or setup_online.bat on a computer with internet^)
|
|
echo If venv was copied from another computer - delete the venv folder
|
|
echo and recreate it with install.bat
|
|
pause
|
|
exit /b 1
|
|
)
|
|
set LT_URL=http://127.0.0.1:8010
|
|
set LLM_BASE_URL=http://127.0.0.1:11434/v1
|
|
set LLM_MODEL=qwen3-4b-instruct
|
|
start "docchecker" "%PYEXE%" -m uvicorn app:app --host 127.0.0.1 --port 8011
|
|
timeout /t 5 /nobreak >nul
|
|
start http://127.0.0.1:8011 |