Spaces:
Sleeping
Sleeping
File size: 2,666 Bytes
157b149 | 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 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 | @echo off
title MindSphere Coach
color 0A
echo.
echo ============================================================
echo MindSphere Coach β Interactive ToM Coaching Agent
echo ============================================================
echo.
:: Save the directory this bat file lives in
cd /d "%~dp0"
:: ββ Check for Python ββββββββββββββββββββββββββββββββββββββββββ
where python >nul 2>&1
if %errorlevel% neq 0 (
echo [ERROR] Python is not installed or not in your PATH.
echo.
echo Please install Python 3.10+ from https://www.python.org/downloads/
echo Make sure to check "Add Python to PATH" during installation.
echo.
pause
exit /b 1
)
:: Show Python version
echo Found Python:
python --version
echo.
:: ββ Install dependencies if needed ββββββββββββββββββββββββββββ
echo Checking dependencies...
python -c "import fastapi" >nul 2>&1
if %errorlevel% neq 0 (
echo Installing dependencies (first time only, this may take a minute)...
echo.
pip install -e . >nul 2>&1
if %errorlevel% neq 0 (
echo [ERROR] Failed to install dependencies.
echo Try running manually: pip install -e .
echo.
pause
exit /b 1
)
echo Dependencies installed successfully.
echo.
)
:: ββ Check for .env file βββββββββββββββββββββββββββββββββββββββ
if not exist ".env" (
echo --------------------------------------------------------
echo NOTE: No .env file found.
echo.
echo The app will work without it, but LLM-powered responses
echo require a Mistral API key. To enable them:
echo 1. Copy .env.example to .env
echo 2. Add your key: MISTRAL_API_KEY=your_key_here
echo --------------------------------------------------------
echo.
)
:: ββ Start the server ββββββββββββββββββββββββββββββββββββββββββ
echo Starting MindSphere Coach...
echo.
echo ============================================================
echo Open your browser to: http://localhost:8000
echo ============================================================
echo.
echo Press Ctrl+C to stop the server.
echo.
:: Open browser automatically after a short delay
start "" "http://localhost:8000"
:: Run the server
python scripts/run_demo.py
:: If we get here, server was stopped
echo.
echo Server stopped. You can close this window.
pause
|