run_app.bat 663 B

12345678910111213141516171819202122232425262728
  1. @echo off
  2. echo ===================================
  3. echo BRAIN Expression Template Decoder
  4. echo ===================================
  5. echo.
  6. REM Check if Python is installed
  7. python --version >nul 2>&1
  8. if errorlevel 1 (
  9. echo Error: Python is not installed or not in PATH!
  10. echo Please install Python from https://www.python.org/
  11. pause
  12. exit /b 1
  13. )
  14. echo Starting the application...
  15. echo The app will automatically install any missing dependencies.
  16. echo.
  17. REM Run the Flask application
  18. python app.py
  19. REM Keep window open if there was an error
  20. if errorlevel 1 (
  21. echo.
  22. echo Application exited with an error.
  23. pause
  24. )