Spaces:
Sleeping
Sleeping
File size: 990 Bytes
af61b34 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | @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
|