File size: 918 Bytes
f05ed74 | 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 | @echo off
echo.
echo ==========================================
echo Restaurant Review Analyzer (ABSA)
echo ==========================================
echo.
REM Check if Python is installed
python --version >nul 2>&1
if %errorlevel% neq 0 (
echo Error: Python is not installed or not in PATH
echo Please install Python 3.8+ and try again
pause
exit /b 1
)
REM Check if requirements are installed
echo Checking dependencies...
python -c "import gradio, transformers, pandas" >nul 2>&1
if %errorlevel% neq 0 (
echo Installing requirements...
pip install -r requirements.txt
if %errorlevel% neq 0 (
echo Error: Failed to install requirements
pause
exit /b 1
)
)
echo.
echo Starting the application...
echo This may take a few minutes on first run (downloading models)
echo.
REM Launch the application
python app.py
pause |