Fix string interpolation
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 17:28:57 +02:00
parent 3438e8e722
commit b42e4c773c

View File

@ -11,7 +11,7 @@ input = str(arguments[0])
model = mlflow.pytorch.load_model("my_model")
with open('my_model/{input}', 'r') as file:
with open(f'my_model/{input}', 'r') as file:
json_data = json.load(file)['inputs']
data_into_dict = {idx:x for idx, x in enumerate(json_data)}