From f0618fd6e5c104efc236a5a690435145cdf8aa23 Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 13 Oct 2020 05:31:14 +0300 Subject: [PATCH] Fixed serving model bug (#472) --- mlrun/runtimes/function.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mlrun/runtimes/function.py b/mlrun/runtimes/function.py index 98c5efda7b8..b5b43641f34 100644 --- a/mlrun/runtimes/function.py +++ b/mlrun/runtimes/function.py @@ -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