mlflow attempt task 2 prediction
This commit is contained in:
parent
0dd47886dd
commit
e9ebc9a95b
@ -11,7 +11,7 @@ input = str((sys.argv[1:])[0])
|
||||
PATH = "ml/mlruns/1/f65f936936024133a2c03e1e486ba9cf/artifacts/model/"
|
||||
model =mlflow.pyfunc.load_model(f"{PATH}")
|
||||
|
||||
with open(f'[PATH]/{input}', 'r') as file:
|
||||
with open(f'{PATH}{input}', 'r') as file:
|
||||
json_data = json.load(file)
|
||||
|
||||
print(f"Input: {json_data['inputs'][0]}")
|
||||
|
Loading…
Reference in New Issue
Block a user