Files
local-translator/scripts/windows/start.bat
T
mrleo1nidandClaude Sonnet 5.5 f49ee90477 feat: browser access (allowed_origins, CORS with Private Network Access), job cancel, Tomie/Unity adapters, benchmark
Includes earlier uncommitted work: Tomie and Unity adapters, benchmark, structured output, call metrics.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-25 18:59:28 +03:00

27 lines
740 B
Batchfile

@echo off
setlocal
cd /d "%~dp0..\.."
if exist ".venv\Scripts\python.exe" goto dependencies
where py >nul 2>nul
if not errorlevel 1 (
py -3 -m venv .venv
) else (
python -m venv .venv
)
if errorlevel 1 goto failed
:dependencies
if exist ".venv\translator-installed" goto run
".venv\Scripts\python.exe" -m pip install -e .
if errorlevel 1 goto failed
type nul > ".venv\translator-installed"
:run
if not exist config.toml copy /y config.example.toml config.toml >nul
echo Local Translator: http://127.0.0.1:8787/docs ^(default port^)
".venv\Scripts\python.exe" -m local_translator --config "config.toml"
if errorlevel 1 goto failed
exit /b 0
:failed
echo Startup failed. Python 3.11+ is required. See the error above.
pause
exit /b 1