diff --git a/pkg/workloads/cortex/onnx_serve/api.py b/pkg/workloads/cortex/onnx_serve/api.py index d54877342e..f89ac15064 100644 --- a/pkg/workloads/cortex/onnx_serve/api.py +++ b/pkg/workloads/cortex/onnx_serve/api.py @@ -309,8 +309,8 @@ def start(args): cx_logger().warn("an error occurred while attempting to load classes", exc_info=True) waitress_kwargs = {} - if api["tensorflow"].get("metadata") is not None: - for key, value in api["tensorflow"]["metadata"].items(): + if api["onnx"].get("metadata") is not None: + for key, value in api["onnx"]["metadata"].items(): if key.startswith("waitress_"): waitress_kwargs[key[len("waitress_") :]] = value diff --git a/pkg/workloads/cortex/predictor_serve/api.py b/pkg/workloads/cortex/predictor_serve/api.py index f28deb988e..19a29cc94c 100644 --- a/pkg/workloads/cortex/predictor_serve/api.py +++ b/pkg/workloads/cortex/predictor_serve/api.py @@ -150,8 +150,8 @@ def start(args): cx_logger().warn("an error occurred while attempting to load classes", exc_info=True) waitress_kwargs = {} - if api["tensorflow"].get("metadata") is not None: - for key, value in api["tensorflow"]["metadata"].items(): + if api["predictor"].get("metadata") is not None: + for key, value in api["predictor"]["metadata"].items(): if key.startswith("waitress_"): waitress_kwargs[key[len("waitress_") :]] = value