Skip to content

Commit

Permalink
Address review: Remove mentioning start_server in example
Browse files Browse the repository at this point in the history
  • Loading branch information
Arief Rahmansyah committed Jan 15, 2024
1 parent 419ef18 commit 3663962
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions python/pyfunc-server/examples/echo_http/echo_http.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import logging

import merlin
from merlin.model import ModelType, PyFuncModel
from merlin.model import PyFuncModel


class EchoModel(PyFuncModel):
Expand All @@ -19,15 +19,3 @@ def infer(self, request):
model_instance=EchoModel(),
conda_env="env.yaml",
)

# Or, if you already have logged existing model version on Merlin,
# you can get the latest model version and run it locally:
# merlin.set_url("<your merlin server url>")
# merlin.set_project("<your project>")
# merlin.set_model("<your model name>", ModelType.PYFUNC)

# versions = merlin.active_model().list_version()
# versions.sort(key=lambda v: v.id, reverse=True)

# last_version = versions[0]
# last_version.start_server(debug=True)
Binary file modified python/pyfunc-server/examples/iris_http/models/model_2.joblib
Binary file not shown.

0 comments on commit 3663962

Please sign in to comment.