@echo off
setlocal
cd /d "%~dp0"

if not exist ".venv\Scripts\python.exe" (
    echo [AI][ERROR] .venv not found. Please run setup_ai_env.bat first.
    pause
    exit /b 1
)

echo [AI] Downloading customer demo models. This step needs network only once.
echo [AI] Models will be stored under: %CD%\models
.venv\Scripts\python.exe download_customer_demo_models.py
if errorlevel 1 (
    echo [AI][ERROR] Model download failed.
    pause
    exit /b 1
)

echo [AI] Model cache is ready.
pause
