#!/usr/bin/env python3 """ Run script for the FastAPI backend. """ import os import uvicorn if __name__ == "__main__": # Create logs directory if it doesn't exist os.makedirs("logs", exist_ok=True) # Determine port from environment or use default port = int(os.environ.get("PORT", 8000)) # Run the application using Uvicorn uvicorn.run( "app.main:app", host="0.0.0.0", port=port, reload=True, log_level="info" )