from app.main import app, settings if __name__ == "__main__": import uvicorn # Pass the object directly. This avoids importing the application module a second time. uvicorn.run( app, host=settings.app_host, port=settings.app_port, log_level=settings.log_level.lower(), access_log=False, )