Backend / app.py
bachephysicdun's picture
add uvcorn in app.py. modify Docker accordingly
d6713b3
raw
history blame
224 Bytes
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)