Skip to content

Commit

Permalink
fix: load model path and function
Browse files Browse the repository at this point in the history
  • Loading branch information
santiagxf committed Jun 30, 2023
1 parent 3bda898 commit 7f83c51
Show file tree
Hide file tree
Showing 12 changed files with 4 additions and 52 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def init():
model_path = glob.glob(os.environ["AZUREML_MODEL_DIR"] + "/*/")[0]

# Load the model, it's input types and output names
model = mlflow.pyfunc.load(model_path)
model = mlflow.pyfunc.load_model(model_path)
if model.metadata and model.metadata.signature:
if model.metadata.signature.inputs:
model_input_types = dict(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def init():
output_path = os.environ["AZUREML_BI_OUTPUT_PATH"]

# Load the model, it's input types and output names
model = mlflow.pyfunc.load(model_path)
model = mlflow.pyfunc.load_model(model_path)
if model.metadata and model.metadata.signature:
if model.metadata.signature.inputs:
model_input_types = dict(
Expand Down

This file was deleted.

This file was deleted.

Binary file not shown.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def init():
model_path = glob.glob(os.environ["AZUREML_MODEL_DIR"] + "/*/")[0]

# Load the model, it's input types and output names
model = mlflow.pyfunc.load(model_path)
model = mlflow.pyfunc.load_model(model_path)
if model.metadata and model.metadata.signature:
if model.metadata.signature.inputs:
model_input_types = dict(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def init():
output_path = os.environ["AZUREML_BI_OUTPUT_PATH"]

# Load the model, it's input types and output names
model = mlflow.pyfunc.load(model_path)
model = mlflow.pyfunc.load_model(model_path)
if model.metadata and model.metadata.signature:
if model.metadata.signature.inputs:
model_input_types = dict(
Expand Down

0 comments on commit 7f83c51

Please sign in to comment.