12 lines
334 B
Python
12 lines
334 B
Python
import json
|
|
import mlflow as mlf
|
|
import pandas as pd
|
|
|
|
model = mlf.keras.load_model("movies_imdb")
|
|
|
|
with open('movies_imdb/input_example.json', 'r') as datafile:
|
|
data = json.load(datafile)['inputs']
|
|
|
|
input_dictionary = {idx:x for idx, x in enumerate(data)}
|
|
input_ex = pd.DataFrame([input_dictionary])
|
|
print(model.predict(input_ex)) |