carlfeynman commited on
Commit
fccfd79
1 Parent(s): 27ed54f

api updated

Browse files
Files changed (1) hide show
  1. server.py +1 -1
server.py CHANGED
@@ -10,6 +10,6 @@ app.mount("/static", StaticFiles(directory=Path("static")), name="static")
10
  async def root():
11
  return FileResponse("static/index.html")
12
 
13
- @app.get("/predict")
14
  async def predict():
15
  return {"prediction": "Hello, World!"}
 
10
  async def root():
11
  return FileResponse("static/index.html")
12
 
13
+ @app.post("/predict")
14
  async def predict():
15
  return {"prediction": "Hello, World!"}