Fix prediction script
Some checks failed
s434704-predict-s426206/pipeline/head There was a failure building this commit
s434704-evaluation/pipeline/head This commit looks good

This commit is contained in:
Wojciech Jarmosz 2021-05-23 18:28:44 +02:00
parent 33c19f9112
commit 99aa9a85a0

View File

@ -16,4 +16,4 @@ model = mlflow.pytorch.load_model("my_model")
with open(f'my_model/{input}', 'r') as file:
json_data = json.load(file)['inputs']
print(model(torch.tensor(np.array(json_data['inputs'])).float()))
print(model(torch.tensor(np.array(json_data['inputs'])).float()))