DCE / service /run.bat
That guy James Bond :)
Deploy Medical Intent Escalation API
af61b34
Raw
History Blame Contribute Delete
990 Bytes
@echo off
REM Start DCE Intent Classifier Service (Windows)
REM Usage: service\run.bat
setlocal
REM Default configuration
if "%HOST%"=="" set HOST=0.0.0.0
if "%PORT%"=="" set PORT=8000
if "%MODEL_DIR%"=="" set MODEL_DIR=artifacts\onnx_int8
if "%POLICY_PATH%"=="" set POLICY_PATH=artifacts\config\decision_policy.json
if "%MAX_LENGTH%"=="" set MAX_LENGTH=64
echo ==============================================
echo DCE Intent Classifier Service
echo ==============================================
echo Host: %HOST%
echo Port: %PORT%
echo Model: %MODEL_DIR%
echo Policy: %POLICY_PATH%
echo Max Length: %MAX_LENGTH%
echo ==============================================
REM Check if model exists
if not exist "%MODEL_DIR%\model.onnx" (
echo ERROR: Model not found at %MODEL_DIR%\model.onnx
echo Run 'task_runner.bat train' and 'task_runner.bat export_onnx' first
exit /b 1
)
REM Start server
echo Starting server...
uvicorn service.app:app --host %HOST% --port %PORT%
endlocal