Daniel Marques commited on
Commit
a354107
1 Parent(s): 5f76223

feat: add fastapi

Browse files
Files changed (1) hide show
  1. main.py +5 -1
main.py CHANGED
@@ -69,7 +69,11 @@ class Predict(BaseModel):
69
 
70
  app = FastAPI()
71
 
72
- app.mount("/", StaticFiles(directory="static"), name="static")
 
 
 
 
73
 
74
  @app.post('/predict')
75
  async def predict(data: Predict):
 
69
 
70
  app = FastAPI()
71
 
72
+ @app.get("/")
73
+ def read_root():
74
+ return {"Hello": "World"}
75
+
76
+ app.mount("/static", StaticFiles(directory="static"), name="static")
77
 
78
  @app.post('/predict')
79
  async def predict(data: Predict):