2021-05-23 21:42:57 +02:00
|
|
|
import mlflow
|
2021-05-23 22:07:14 +02:00
|
|
|
import sys
|
|
|
|
import json
|
2021-05-23 21:42:57 +02:00
|
|
|
|
2021-05-23 21:55:25 +02:00
|
|
|
model = mlflow.keras.load_model("movies_on_streaming_platforms_model")
|
2021-05-23 22:07:14 +02:00
|
|
|
with open('movies_on_streaming_platforms_model/input_example.json') as json_file:
|
|
|
|
data = json.load(json_file)
|
2021-05-23 21:42:57 +02:00
|
|
|
print(data)
|
|
|
|
print(model.predict(data))
|