We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e98300 commit a65fcc9Copy full SHA for a65fcc9
1 file changed
vetiver/server.py
@@ -82,7 +82,7 @@ async def prediction(
82
83
@app.post("/predict")
84
async def prediction(input_data: Request):
85
- y = await input_data.body()
+ y = await input_data.json()
86
prediction = self.model.handler_predict(y, check_ptype=self.check_ptype)
87
88
return {"prediction": prediction.tolist()}
0 commit comments