Backend / app.py
bachephysicdun's picture
change app:app to main:app
e25a1f9
raw
history blame
223 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)