mirror of
https://github.com/vale981/ray
synced 2025-03-05 10:01:43 -05:00
[serve] Fix API calls in global README (#12015)
This commit is contained in:
parent
effa553077
commit
8bcb0bddc9
1 changed files with 3 additions and 3 deletions
|
@ -250,9 +250,9 @@ This example runs serves a scikit-learn gradient boosting classifier.
|
|||
|
||||
|
||||
# Deploy model
|
||||
serve.init()
|
||||
serve.create_backend("iris:v1", BoostingModel)
|
||||
serve.create_endpoint("iris_classifier", backend="iris:v1", route="/iris")
|
||||
client = serve.start()
|
||||
client.create_backend("iris:v1", BoostingModel)
|
||||
client.create_endpoint("iris_classifier", backend="iris:v1", route="/iris")
|
||||
|
||||
# Query it!
|
||||
sample_request_input = {"vector": [1.2, 1.0, 1.1, 0.9]}
|
||||
|
|
Loading…
Add table
Reference in a new issue