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