Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Weisu Yin committed Jun 9, 2023
1 parent a6bba8e commit 2d6de47
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ def transform_fn(model, request_body, input_content_type, output_content_type="a
payload = pickle.loads(buf)
data = pd.read_parquet(BytesIO(payload["data"]))
inference_kwargs = payload["inference_kwargs"]
if inference_kwargs is None:
inference_kwargs = {}

elif input_content_type == "application/x-autogluon-npy":
buf = bytes(request_body)
Expand Down

0 comments on commit 2d6de47

Please sign in to comment.