Spaces:
Sleeping
Sleeping
Upload scripts\start.bat with huggingface_hub
Browse files- scripts//start.bat +78 -0
scripts//start.bat
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@echo off
|
| 2 |
+
REM VR180 Converter Startup Script for Windows
|
| 3 |
+
|
| 4 |
+
echo π Starting VR180 Converter...
|
| 5 |
+
|
| 6 |
+
REM Check if Python is installed
|
| 7 |
+
python --version >nul 2>&1
|
| 8 |
+
if %errorlevel% neq 0 (
|
| 9 |
+
echo β Python is not installed. Please install Python 3.9+ and try again.
|
| 10 |
+
pause
|
| 11 |
+
exit /b 1
|
| 12 |
+
)
|
| 13 |
+
|
| 14 |
+
REM Check if Node.js is installed
|
| 15 |
+
node --version >nul 2>&1
|
| 16 |
+
if %errorlevel% neq 0 (
|
| 17 |
+
echo β Node.js is not installed. Please install Node.js 16+ and try again.
|
| 18 |
+
pause
|
| 19 |
+
exit /b 1
|
| 20 |
+
)
|
| 21 |
+
|
| 22 |
+
REM Check if FFmpeg is installed
|
| 23 |
+
ffmpeg -version >nul 2>&1
|
| 24 |
+
if %errorlevel% neq 0 (
|
| 25 |
+
echo β οΈ FFmpeg is not installed. Video processing may not work properly.
|
| 26 |
+
echo Please install FFmpeg: https://ffmpeg.org/download.html
|
| 27 |
+
)
|
| 28 |
+
|
| 29 |
+
REM Create necessary directories
|
| 30 |
+
echo π Creating directories...
|
| 31 |
+
if not exist "backend\uploads" mkdir backend\uploads
|
| 32 |
+
if not exist "backend\outputs" mkdir backend\outputs
|
| 33 |
+
|
| 34 |
+
REM Install Python dependencies
|
| 35 |
+
echo π Installing Python dependencies...
|
| 36 |
+
cd backend
|
| 37 |
+
pip install -r requirements.txt
|
| 38 |
+
if %errorlevel% neq 0 (
|
| 39 |
+
echo β Failed to install Python dependencies
|
| 40 |
+
pause
|
| 41 |
+
exit /b 1
|
| 42 |
+
)
|
| 43 |
+
cd ..
|
| 44 |
+
|
| 45 |
+
REM Install Node.js dependencies
|
| 46 |
+
echo π¦ Installing Node.js dependencies...
|
| 47 |
+
cd frontend
|
| 48 |
+
npm install
|
| 49 |
+
if %errorlevel% neq 0 (
|
| 50 |
+
echo β Failed to install Node.js dependencies
|
| 51 |
+
pause
|
| 52 |
+
exit /b 1
|
| 53 |
+
)
|
| 54 |
+
cd ..
|
| 55 |
+
|
| 56 |
+
REM Build React app
|
| 57 |
+
echo π¨ Building React app...
|
| 58 |
+
cd frontend
|
| 59 |
+
npm run build
|
| 60 |
+
if %errorlevel% neq 0 (
|
| 61 |
+
echo β Failed to build React app
|
| 62 |
+
pause
|
| 63 |
+
exit /b 1
|
| 64 |
+
)
|
| 65 |
+
cd ..
|
| 66 |
+
|
| 67 |
+
echo β
Setup complete!
|
| 68 |
+
echo.
|
| 69 |
+
echo π― To start the application:
|
| 70 |
+
echo Backend: cd backend ^&^& python app.py
|
| 71 |
+
echo Frontend: cd frontend ^&^& npm start
|
| 72 |
+
echo.
|
| 73 |
+
echo π Access the application at:
|
| 74 |
+
echo Frontend: http://localhost:3000
|
| 75 |
+
echo Backend: http://localhost:5000
|
| 76 |
+
echo.
|
| 77 |
+
echo π For more information, see docs\README.md
|
| 78 |
+
pause
|