import json import mlflow import numpy as np path = '/mlruns/13/da5c6167bb45403fa35569849a1fbc13/artifacts/model' model = mlflow.pyfunc.load_model(path) with open(f'{path}/input_example.json') as file: data = json.load(file) input_example = np.array([data['inputs']]).reshape(-1, 2) print('Input:\n', input_example) print('Predictions:\n', model.predict(input_example))