File size: 1,373 Bytes
54ed165 | 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 | @echo off
REM Local AI Video Generator Startup Script for Windows
echo π¬ Starting Local AI Video Generator...
echo ========================================
echo.
REM Check if Python is installed
python --version >nul 2>&1
if errorlevel 1 (
echo β Python is not installed. Please install Python 3.9 or higher.
pause
exit /b 1
)
REM Check if virtual environment exists
if not exist "venv" (
echo π¦ Creating virtual environment...
python -m venv venv
)
REM Activate virtual environment
echo π§ Activating virtual environment...
call venv\Scripts\activate.bat
REM Check if requirements are installed
if not exist "venv\.requirements_installed" (
echo π₯ Installing dependencies (this may take a few minutes)...
echo.
echo β οΈ Note: If you have an NVIDIA GPU, install PyTorch with CUDA first:
echo pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
echo.
pause
pip install -r requirements_local.txt
type nul > venv\.requirements_installed
echo β
Dependencies installed!
)
REM Start the backend server
echo.
echo π Starting backend server on http://localhost:5000
echo π Open index_local.html in your browser to use the app
echo.
echo Press Ctrl+C to stop the server
echo ========================================
echo.
python backend_local.py
|