20f2960 d6713b3 e25a1f9
1
2
3
4
5
6
7
8
9
from fastapi import FastAPI app = FastAPI() @app.get("/") def greet_json(): return {"Hello": "World!"} if __name__ == "__main__": import uvicorn uvicorn.run("main:app", host="localhost", reload=True, port=8000)