diff --git a/predict_registry.py b/predict_registry.py index 28561df..23d823e 100644 --- a/predict_registry.py +++ b/predict_registry.py @@ -2,13 +2,13 @@ import mlflow import numpy as np import json -regsistry_path = '/mlruns/17/ /artifacts/model' # +registry_path = '/mlruns/17/4a8894c60fe34adcb79108c66d7330fc/artifacts/linear-model' # model = mlflow.pyfunc.load_model(registry_path) # -with open(f'{model}/input_example.json') as f: +with open(f'{registry_path}/input_example.json') as f: input_example_data = json.load(f) -input_example = np.array() # +input_example = np.array(input_example_data['inputs']) # print(f'Input example: {input_example}') print(f'Model prediction: {model.predict(input_example)}')