CoolFace
Apppublic

The-Myth/DeepThinkers

sourceHugging Facemitupdated 6mo agoView on Hugging Face
0likes
run_local.bat47 linesDownload Raw Back to root
1@echo off2REM run_local.bat — Start the Email Triage server and run the baseline inference script (Windows).3REM Usage: run_local.bat [task]4REM   task: all | priority-classification | category-routing | full-triage-pipeline (default: all)5 6setlocal enabledelayedexpansion7 8set "TASK=%~1"9if "%TASK%"=="" set "TASK=all"10set PORT=786011 12echo [run_local] Installing dependencies...13pip install -r requirements.txt -q14 15echo [run_local] Starting environment server on port %PORT%...16start /B "" uvicorn server.app:app --host 0.0.0.0 --port %PORT% --workers 117 18REM Wait for server to be ready19echo [run_local] Waiting for server...20set READY=021for /L %%i in (1,1,30) do (22    if !READY!==0 (23        curl -sf "http://localhost:%PORT%/health" >nul 2>&124        if !errorlevel!==0 (25            echo  ready!26            set READY=127        ) else (28            <nul set /p=.29            timeout /t 1 /nobreak >nul30        )31    )32)33 34if !READY!==0 (35    echo.36    echo [run_local] ERROR: Server failed to start.37    exit /b 138)39 40echo [run_local] Running inference (task=%TASK%)...41set "EMAIL_TRIAGE_TASK=%TASK%"42set "ENV_BASE_URL=http://localhost:%PORT%"43python inference.py44 45echo [run_local] Done.46endlocal47