Fix string interpolation
Some checks failed
s434704-predict-s426206/pipeline/head There was a failure building this commit
Some checks failed
s434704-predict-s426206/pipeline/head There was a failure building this commit
This commit is contained in:
parent
3438e8e722
commit
b42e4c773c
@ -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)}
|
||||
|
Loading…
Reference in New Issue
Block a user