ABSA / run.bat
sdf299's picture
Upload folder using huggingface_hub
f05ed74 verified
raw
history blame contribute delete
918 Bytes
@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