mlflow attempt task 2 prediction

This commit is contained in:
Kamila 2022-05-15 12:56:40 +02:00
parent 4edda8a804
commit 0dd47886dd
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ file.extractall('./ml')
input = str((sys.argv[1:])[0]) input = str((sys.argv[1:])[0])
PATH = "ml/mlruns/1/f65f936936024133a2c03e1e486ba9cf/artifacts/model/" PATH = "ml/mlruns/1/f65f936936024133a2c03e1e486ba9cf/artifacts/model/"
model =mlflow.pyfunc.load_model(f"{PATH}/MLmodel") 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) json_data = json.load(file)