This commit is contained in:
parent
99aa9a85a0
commit
c221c48a4a
@ -14,6 +14,9 @@ input = str(arguments[0])
|
|||||||
model = mlflow.pytorch.load_model("my_model")
|
model = mlflow.pytorch.load_model("my_model")
|
||||||
|
|
||||||
with open(f'my_model/{input}', 'r') as file:
|
with open(f'my_model/{input}', 'r') as file:
|
||||||
json_data = json.load(file)['inputs']
|
json_data = json.load(file)
|
||||||
|
|
||||||
|
print(json_data)
|
||||||
|
print(json_data['inputs'])
|
||||||
|
|
||||||
print(model(torch.tensor(np.array(json_data['inputs'])).float()))
|
print(model(torch.tensor(np.array(json_data['inputs'])).float()))
|
||||||
|
Loading…
Reference in New Issue
Block a user