trabb / start.bat
fokan's picture
Initial commit
0a32234
raw
history blame contribute delete
780 Bytes
@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