|
|
@echo off |
|
|
echo π Starting Document Translator... |
|
|
|
|
|
|
|
|
if not exist "venv" ( |
|
|
echo π¦ Creating virtual environment... |
|
|
python -m venv venv |
|
|
) |
|
|
|
|
|
|
|
|
echo π§ Activating virtual environment... |
|
|
call venv\Scripts\activate.bat |
|
|
|
|
|
|
|
|
echo π Installing dependencies... |
|
|
pip install -r requirements.txt |
|
|
|
|
|
|
|
|
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 |
|
|
) |
|
|
|
|
|
|
|
|
echo π§ͺ Running setup tests... |
|
|
python test_setup.py |
|
|
|
|
|
|
|
|
echo π Starting FastAPI server on http://localhost:7860 |
|
|
python app.py |
|
|
|
|
|
pause |