ium_434788/Zadanie_09_MLflow_Predict.py
Dominik Strzako ca2841a2e4 ???
2021-05-23 22:07:14 +02:00

9 lines
261 B
Python

import mlflow
import sys
import json
model = mlflow.keras.load_model("movies_on_streaming_platforms_model")
with open('movies_on_streaming_platforms_model/input_example.json') as json_file:
data = json.load(json_file)
print(data)
print(model.predict(data))