om1chael's picture
hello
26c4a8d
raw
history blame
202 Bytes
import uvicorn
from fastapi import FastAPI
app = FastAPI()
@app.get("/")
def read_root():
return {"Hello": "World!"}
if __name__ == '__main__':
uvicorn.run('main:app', port=8000, reload=True)