Files
iov_data_analysis_agent/start_web.bat

21 lines
579 B
Batchfile
Raw Normal View History

2026-01-09 16:52:45 +08:00
@echo off
chcp 65001 >nul
set PYTHONIOENCODING=utf-8
:: Get local IP address
for /f "tokens=2 delims=:" %%a in ('ipconfig ^| findstr /c:"IPv4"') do (
for /f "tokens=1" %%b in ("%%a") do set LOCAL_IP=%%b
)
echo.
echo IOV Data Analysis Agent
echo ========================
echo.
echo Local: http://localhost:8000
if defined LOCAL_IP (
echo Network: http://%LOCAL_IP%:8000
)
echo.
python -m uvicorn web.main:app --reload --reload-exclude "outputs" --reload-exclude "uploads" --reload-exclude ".hypothesis" --reload-exclude ".cache" --host 0.0.0.0 --port 8000
2026-01-09 16:52:45 +08:00
pause