Skip to content

Commit

Permalink
Fix Ray Serve example (ray-project#24276)
Browse files Browse the repository at this point in the history
The current example in the `README.md` is broken, which is same issue as ray-project#22228. cc @simon-mo
  • Loading branch information
osanseviero authored Apr 29, 2022
1 parent caba3d4 commit 94432d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ This example runs serves a scikit-learn gradient boosting classifier.
self.label_list = iris_dataset["target_names"].tolist()
async def __call__(self, request):
payload = await request.json()["vector"]
payload = (await request.json())["vector"]
print(f"Received flask request with data {payload}")
prediction = self.model.predict([payload])[0]
Expand Down

0 comments on commit 94432d6

Please sign in to comment.