@echo off setlocal EnableDelayedExpansion cd /d "%~dp0" set "UV_LINK_MODE=copy" set "UV_CACHE_DIR=%~dp0.uv-cache" if not exist "%UV_CACHE_DIR%" mkdir "%UV_CACHE_DIR%" where uv >nul 2>&1 if errorlevel 1 ( echo [QwenImageEditLite] 'uv' not found on PATH. Installing uv ... powershell -ExecutionPolicy Bypass -NoProfile -Command "irm https://astral.sh/uv/install.ps1 | iex" if errorlevel 1 ( echo [QwenImageEditLite] uv install failed. Please install manually: https://docs.astral.sh/uv/ pause exit /b 1 ) set "PATH=%USERPROFILE%\.local\bin;%USERPROFILE%\.cargo\bin;%PATH%" ) if not exist "%~dp0.venv\Scripts\python.exe" ( echo [QwenImageEditLite] .venv not found. echo [QwenImageEditLite] Run install.bat first. pause exit /b 1 ) if not exist "%~dp0config.ini" ( echo [QwenImageEditLite] config.ini not found. pause exit /b 1 ) echo [QwenImageEditLite] Launching WebUI on 0.0.0.0 (LAN accessible) ... "%~dp0.venv\Scripts\python.exe" -m qwen_image_edit_lite.webui %* endlocal