Skip to content

Commit

Permalink
Fix copy paste error (#649)
Browse files Browse the repository at this point in the history
(cherry picked from commit a354308)
  • Loading branch information
vishalbollu authored and deliahu committed Dec 11, 2019
1 parent 019ce09 commit 8f1c5dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/workloads/cortex/onnx_serve/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions pkg/workloads/cortex/predictor_serve/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8f1c5dd

Please sign in to comment.