File size: 975 Bytes
bbdd198 |
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 |
@echo off
setlocal enabledelayedexpansion
REM ==================================================
REM AI‑Toolkit — Quick UI Launcher
REM Double‑click to start / Ctrl+C to stop
REM ==================================================
REM Assumptions:
REM • This file sits **inside the ai-toolkit root folder**
REM (next to the "ui" directory and "venv" folder).
REM • You have already run the full installer once.
REM --------------------------------------------------
:: Activate Python virtual environment
if not exist "venv\Scripts\activate.bat" (
echo [ERROR] venv not found. Run the installer first.
pause
exit /b 1
)
call "venv\Scripts\activate.bat"
:: Optional: free any orphaned Node servers (heavy‑handed but safe)
taskkill /F /IM node.exe >nul 2>&1
:: Change into the UI directory
cd ui
:: Launch the UI
echo Starting AI‑Toolkit UI... (Press Ctrl+C to stop)
npm run build_and_start
endlocal
|