@echo off REM NATO ASI - AI for Disaster Management REM Gradio App Launcher Script (Windows) echo ================================================ echo NATO ASI - AI for Disaster Management echo Interactive Gradio Application echo ================================================ echo. REM Check if Python is installed python --version >nul 2>&1 if errorlevel 1 ( echo Error: Python is not installed. echo Please install Python 3.8+ from https://www.python.org/ pause exit /b 1 ) echo [OK] Python found echo. REM Check if virtual environment exists if not exist "venv" ( echo Creating virtual environment... python -m venv venv echo [OK] Virtual environment created ) else ( echo [OK] Virtual environment found ) echo. REM Activate virtual environment echo Activating virtual environment... call venv\Scripts\activate.bat echo [OK] Virtual environment activated echo. REM Install/update dependencies echo Installing dependencies... python -m pip install -q --upgrade pip python -m pip install -q -r requirements.txt echo [OK] Dependencies installed echo. REM Launch the app echo ================================================ echo Launching Gradio App... echo ================================================ echo. echo The app will open in your browser automatically. echo If not, navigate to: http://localhost:7860 echo. echo Press Ctrl+C to stop the server. echo. python gradio_app.py pause