Skip to content

Commit cdfd027

Browse files
authored
Update how-to-mlflow-batch.md
1 parent 9d172b8 commit cdfd027

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/machine-learning/batch-inference/how-to-mlflow-batch.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ Use the following steps to deploy an MLflow model with a custom scoring script.
461461
# AZUREML_MODEL_DIR is an environment variable created during deployment
462462
# It is the path to the model folder
463463
model_path = os.path.join(os.environ["AZUREML_MODEL_DIR"], "model")
464-
model = mlflow.pyfunc.load(model_path)
464+
model = mlflow.pyfunc.load_model(model_path)
465465

466466
def run(mini_batch):
467467
results = pd.DataFrame(columns=['file', 'predictions'])

0 commit comments

Comments
 (0)