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