@echo off echo === LLM Lab System Monitor === echo. REM Check if virtual environment exists if not exist "llmlab" ( echo Virtual environment not found. Please run setup_env.bat to create it. pause exit /b 1 ) REM Activate virtual environment call llmlab\Scripts\activate.bat REM Check required dependencies pip show psutil tkinter > nul 2>&1 if %ERRORLEVEL% NEQ 0 ( echo Installing missing dependencies... pip install psutil REM Tkinter is included with Python, not installable via pip ) echo Starting system monitor... echo The monitor will display running Ollama models in the "Ollama" tab. echo. echo Press Ctrl+C in the monitor window to stop. REM Launch the monitor python -m utils.system_monitor REM Deactivate virtual environment when done call llmlab\Scripts\deactivate.bat