Skip to content

Commit 8f1c5dd

Browse files
vishalbolludeliahu
authored andcommitted
Fix copy paste error (#649)
(cherry picked from commit a354308)
1 parent 019ce09 commit 8f1c5dd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pkg/workloads/cortex/onnx_serve/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,8 @@ def start(args):
309309
cx_logger().warn("an error occurred while attempting to load classes", exc_info=True)
310310

311311
waitress_kwargs = {}
312-
if api["tensorflow"].get("metadata") is not None:
313-
for key, value in api["tensorflow"]["metadata"].items():
312+
if api["onnx"].get("metadata") is not None:
313+
for key, value in api["onnx"]["metadata"].items():
314314
if key.startswith("waitress_"):
315315
waitress_kwargs[key[len("waitress_") :]] = value
316316

pkg/workloads/cortex/predictor_serve/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ def start(args):
150150
cx_logger().warn("an error occurred while attempting to load classes", exc_info=True)
151151

152152
waitress_kwargs = {}
153-
if api["tensorflow"].get("metadata") is not None:
154-
for key, value in api["tensorflow"]["metadata"].items():
153+
if api["predictor"].get("metadata") is not None:
154+
for key, value in api["predictor"]["metadata"].items():
155155
if key.startswith("waitress_"):
156156
waitress_kwargs[key[len("waitress_") :]] = value
157157

0 commit comments

Comments
 (0)