Change flavor of model prediction
Some checks failed
s434704-predict-s426206/pipeline/head There was a failure building this commit

This commit is contained in:
Wojciech Jarmosz 2021-05-23 16:57:24 +02:00
parent 1b9f078196
commit 31201b169b

View File

@ -9,7 +9,7 @@ arguments = sys.argv[1:]
input = str(arguments[0]) input = str(arguments[0])
model = mlflow.keras.load_model("my_model") model = mlflow.pytorchg.load_model("my_model")
with open('my_model/{input}', 'r') as file: with open('my_model/{input}', 'r') as file:
json_data = json.load(file)['inputs'] json_data = json.load(file)['inputs']