uvicorn can not start FastAPI with example settings · Issue #1495 · fastapi/fastapi

import uvicorn from fastapi import FastAPI app = FastAPI(title='MADS API') uvicorn.run(app, host='0.0.0.0', port=8127, workers=2) WARNING: You must pass the application as an import string to enabl...