1 2 3 4 5 6 7 8
from fastapi import FastAPI app = FastAPI() @app.get("/") async def root(): return {"message": "Hello World"}
1 2 3 4
Line 7 async def root(): ^ SyntaxError: invalid syntax