Skip to content

Commit a65fcc9

Browse files
committed
request to json
1 parent 5e98300 commit a65fcc9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vetiver/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ async def prediction(
8282

8383
@app.post("/predict")
8484
async def prediction(input_data: Request):
85-
y = await input_data.body()
85+
y = await input_data.json()
8686
prediction = self.model.handler_predict(y, check_ptype=self.check_ptype)
8787

8888
return {"prediction": prediction.tolist()}

0 commit comments

Comments
 (0)