diff --git a/packaging/windows/templates/README.txt b/packaging/windows/templates/README.txt index d3b708f..b4ff57e 100644 --- a/packaging/windows/templates/README.txt +++ b/packaging/windows/templates/README.txt @@ -12,18 +12,11 @@ Build Date: {BUILD_DATE} ======================================== 1. Double-click "start.bat" to launch the Web UI -2. Configure your API keys in the Web UI (Settings section) -3. Open your browser at: http://localhost:8501 +2. Browser will open automatically +3. Configure your API keys in the Web UI (Settings section) -======================================== - Available Launchers -======================================== - -start.bat - Launch Web UI (Default) -start_api.bat - Launch API Server only (Port 8000) -start_web.bat - Launch Web UI only (Port 8501) - -For most users, just use "start.bat" +That's it! Just one click to start. +You can launch multiple instances - each will use a different port automatically. ======================================== First-Time Setup @@ -87,7 +80,7 @@ Problem: "Failed to start" Solution: Check if Python and dependencies are installed correctly Problem: "Port already in use" -Solution: Close other applications using port 8501 or 8000 +Solution: Streamlit automatically uses the next available port. You can run multiple instances simultaneously. Problem: "Module not found" Solution: Re-extract the package completely, don't move files diff --git a/packaging/windows/templates/start.bat b/packaging/windows/templates/start.bat index 84f4cff..a89dc58 100644 --- a/packaging/windows/templates/start.bat +++ b/packaging/windows/templates/start.bat @@ -23,7 +23,7 @@ set "PIXELLE_VIDEO_ROOT=%PROJECT_ROOT%" :: Start Web UI echo [Starting] Launching Pixelle-Video Web UI... -echo Browser will open at: http://localhost:8501 +echo Browser will open automatically. echo. echo Note: Configure API keys and settings in the Web UI. echo Press Ctrl+C to stop the server diff --git a/packaging/windows/templates/start_api.bat b/packaging/windows/templates/start_api.bat deleted file mode 100644 index 771c2cb..0000000 --- a/packaging/windows/templates/start_api.bat +++ /dev/null @@ -1,45 +0,0 @@ -@echo off -chcp 65001 >nul -setlocal enabledelayedexpansion - -echo ======================================== -echo Pixelle-Video - API Server Launcher -echo ======================================== -echo. - -:: Set environment variables -set "PYTHON_HOME=%~dp0python\python311" -set "PATH=%PYTHON_HOME%;%PYTHON_HOME%\Scripts;%~dp0tools\ffmpeg\bin;%PATH%" -set "PROJECT_ROOT=%~dp0Pixelle-Video" - -:: Change to project directory -cd /d "%PROJECT_ROOT%" - -:: Set PYTHONPATH to project root for module imports -set "PYTHONPATH=%PROJECT_ROOT%" - -:: Set PIXELLE_VIDEO_ROOT environment variable for reliable path resolution -set "PIXELLE_VIDEO_ROOT=%PROJECT_ROOT%" - -:: Start API Server -echo [Starting] Launching Pixelle-Video API Server... -echo API will be available at: http://localhost:8000 -echo API Documentation: http://localhost:8000/docs -echo. -echo Note: Configure API keys and settings in the Web UI. -echo Press Ctrl+C to stop the server -echo ======================================== -echo. - -"%PYTHON_HOME%\python.exe" -m uvicorn api.app:app --host 0.0.0.0 --port 8000 - -if errorlevel 1 ( - echo. - echo [ERROR] Failed to start. Please check: - echo 1. Python is properly installed - echo 2. Dependencies are installed - echo 3. Port 8000 is not already in use - echo. - pause -) - diff --git a/packaging/windows/templates/start_web.bat b/packaging/windows/templates/start_web.bat deleted file mode 100644 index d310e18..0000000 --- a/packaging/windows/templates/start_web.bat +++ /dev/null @@ -1,47 +0,0 @@ -@echo off -chcp 65001 >nul -setlocal enabledelayedexpansion - -echo ======================================== -echo Pixelle-Video - Web UI Launcher -echo ======================================== -echo. - -:: Set environment variables -set "PYTHON_HOME=%~dp0python\python311" -set "PATH=%PYTHON_HOME%;%PYTHON_HOME%\Scripts;%~dp0tools\ffmpeg\bin;%PATH%" -set "PROJECT_ROOT=%~dp0Pixelle-Video" - -:: Change to project directory -cd /d "%PROJECT_ROOT%" - -:: Set PYTHONPATH to project root for module imports -set "PYTHONPATH=%PROJECT_ROOT%" - -:: Set PIXELLE_VIDEO_ROOT environment variable for reliable path resolution -set "PIXELLE_VIDEO_ROOT=%PROJECT_ROOT%" - -:: Start Web UI (Standalone mode) -echo [Starting] Launching Pixelle-Video Web UI (Standalone)... -echo Browser will open at: http://localhost:8501 -echo. -echo NOTE: This runs Web UI only. For full features, use start.bat -echo or run start_api.bat in another window. -echo Note: Configure API keys and settings in the Web UI. -echo. -echo Press Ctrl+C to stop the server -echo ======================================== -echo. - -"%PYTHON_HOME%\python.exe" -m streamlit run web\app.py - -if errorlevel 1 ( - echo. - echo [ERROR] Failed to start. Please check: - echo 1. Python is properly installed - echo 2. Dependencies are installed - echo 3. Port 8501 is not already in use - echo. - pause -) -