@echo off REM AniWorld FastAPI Server Startup Script for Windows REM This script activates the conda environment and starts the FastAPI server echo Starting AniWorld FastAPI Server... REM Activate conda environment echo Activating AniWorld conda environment... call conda activate AniWorld REM Change to server directory cd /d "%~dp0" REM Set environment variables for development set PYTHONPATH=%PYTHONPATH%;%CD%\..\.. REM Check if .env file exists if not exist ".env" ( echo Warning: .env file not found. Using default configuration. ) REM Install/update FastAPI dependencies if needed echo Checking FastAPI dependencies... pip install -r requirements_fastapi.txt REM Start the FastAPI server with uvicorn echo Starting FastAPI server on http://localhost:8000 echo API documentation available at http://localhost:8000/docs echo Press Ctrl+C to stop the server python fastapi_app.py pause