ium_434760/try_model.py
Anna Nowak ced9c9dc25 :<
2021-05-24 01:40:00 +02:00

10 lines
281 B
Python

import mlflow
import pandas as pd
import json
model = mlflow.keras.load_model("my_model")
with open('my_model/input_example.json') as json_file:
data = json.load(json_file)
with open('result.txt', 'w+', encoding="UTF-8") as f:
f.write(str(model.predict([data["inputs"]])))