File size: 780 Bytes
0a32234 |
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 |
@echo off
echo π Starting Document Translator...
REM Check if virtual environment exists
if not exist "venv" (
echo π¦ Creating virtual environment...
python -m venv venv
)
REM Activate virtual environment
echo π§ Activating virtual environment...
call venv\Scripts\activate.bat
REM Install dependencies
echo π Installing dependencies...
pip install -r requirements.txt
REM Check if OpenRouter API key is set
if "%OPENROUTER_API_KEY%"=="" (
echo β οΈ Warning: OPENROUTER_API_KEY environment variable not set
echo Please set it with: set OPENROUTER_API_KEY=your_key_here
)
REM Run tests
echo π§ͺ Running setup tests...
python test_setup.py
REM Start the application
echo π Starting FastAPI server on http://localhost:7860
python app.py
pause |