Skip to content

Commit

Permalink
Fixed serving model bug (#472)
Browse files Browse the repository at this point in the history
  • Loading branch information
quaark committed Oct 13, 2020
1 parent 0d1f04d commit f0618fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mlrun/runtimes/function.py
Expand Up @@ -201,6 +201,8 @@ def with_http(
def add_model(self, name, model_path, **kw):
if model_path.startswith("v3io://"):
model = "/User/" + "/".join(model_path.split("/")[5:])
else:
model = model_path
self.set_env("SERVING_MODEL_{}".format(name), model)
return self

Expand Down

0 comments on commit f0618fd

Please sign in to comment.