|
|
@echo off |
|
|
echo Starting Depth Pro Distance Estimation App... |
|
|
echo. |
|
|
|
|
|
|
|
|
python --version >nul 2>&1 |
|
|
if errorlevel 1 ( |
|
|
echo Error: Python is not installed or not in PATH |
|
|
echo Please install Python 3.8+ and try again |
|
|
pause |
|
|
exit /b 1 |
|
|
) |
|
|
|
|
|
|
|
|
echo Checking requirements... |
|
|
pip show gradio >nul 2>&1 |
|
|
if errorlevel 1 ( |
|
|
echo Installing requirements... |
|
|
pip install -r requirements.txt |
|
|
if errorlevel 1 ( |
|
|
echo Error: Failed to install requirements |
|
|
pause |
|
|
exit /b 1 |
|
|
) |
|
|
) else ( |
|
|
echo Requirements already satisfied |
|
|
) |
|
|
|
|
|
echo. |
|
|
echo Starting the application... |
|
|
echo The app will be available at: http://localhost:7860 |
|
|
echo Press Ctrl+C to stop the server |
|
|
echo. |
|
|
|
|
|
python app.py |
|
|
|