mlflow attempt task 2 prediction
This commit is contained in:
parent
4edda8a804
commit
0dd47886dd
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue