start.bat 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. @echo off
  2. chcp 65001 >nul
  3. setlocal enabledelayedexpansion
  4. echo ========================================
  5. echo Pixelle-Video - Windows Launcher
  6. echo ========================================
  7. echo.
  8. :: Set environment variables
  9. set "PYTHON_HOME=%~dp0python\python311"
  10. set "PATH=%PYTHON_HOME%;%PYTHON_HOME%\Scripts;%~dp0tools\ffmpeg\bin;%PATH%"
  11. set "PROJECT_ROOT=%~dp0Pixelle-Video"
  12. :: Change to project directory
  13. cd /d "%PROJECT_ROOT%"
  14. :: Set PYTHONPATH to project root for module imports
  15. set "PYTHONPATH=%PROJECT_ROOT%"
  16. :: Set PIXELLE_VIDEO_ROOT environment variable for reliable path resolution
  17. set "PIXELLE_VIDEO_ROOT=%PROJECT_ROOT%"
  18. :: Start Web UI
  19. echo [Starting] Launching Pixelle-Video Web UI...
  20. echo Browser will open automatically.
  21. echo.
  22. echo Note: Configure API keys and settings in the Web UI.
  23. echo Press Ctrl+C to stop the server
  24. echo ========================================
  25. echo.
  26. "%PYTHON_HOME%\python.exe" -m streamlit run web\app.py
  27. if errorlevel 1 (
  28. echo.
  29. echo [ERROR] Failed to start. Please check:
  30. echo 1. Python is properly installed
  31. echo 2. Dependencies are installed
  32. echo.
  33. pause
  34. )