update predict.py
This commit is contained in:
parent
1479276056
commit
a1b13aa789
@ -11,6 +11,6 @@ loaded_model = mlflow.pyfunc.load_model(logged_model)
|
|||||||
|
|
||||||
with open(f'{logged_model}/'+input) as f:
|
with open(f'{logged_model}/'+input) as f:
|
||||||
data = json.load(f)
|
data = json.load(f)
|
||||||
input_example = np.array([data['inputs'][0]], dtype=np.float64).reshape(
|
input_example = np.array([data['inputs'][0]], dtype=np.float64)
|
||||||
|
|
||||||
loaded_model.predict(input_example)
|
loaded_model.predict(input_example)
|
Loading…
Reference in New Issue
Block a user