update predict.py
Some checks failed
s444356-evaluation/pipeline/head This commit looks good
s444356-training/pipeline/head There was a failure building this commit

This commit is contained in:
Maciej Czajka 2022-05-11 20:09:13 +02:00
parent e7cb37ad58
commit edba1a08b9

View File

@ -10,5 +10,6 @@ loaded_model = mlflow.pyfunc.load_model(logged_model)
with open(f'{logged_model}/'+input) as f:
data = json.load(f)
input_example = np.array([data['inputs']], dtype=np.float64)
loaded_model.predict(data['inputs'])