Update 'predict_artifact.py'

This commit is contained in:
Kacper Dudzic 2022-05-14 15:32:07 +02:00
parent 12ec9fe4fa
commit 3c60e6608c

View File

@ -2,7 +2,7 @@ import mlflow
import numpy as np import numpy as np
import json import json
artifact_path = 'mlruns/1/169f2bf3d53f4de088c494e889c6e65a/artifacts/model' artifact_path = 'mlruns_s444417/1/169f2bf3d53f4de088c494e889c6e65a/artifacts/model'
model = mlflow.pyfunc.load_model(artifact_path) model = mlflow.pyfunc.load_model(artifact_path)
with open(f'input_example.json') as f: with open(f'input_example.json') as f: