Skip to content

Commit bf31ec3

Browse files
committed
refactor
1 parent bfc6866 commit bf31ec3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/autogluon/cloud/scripts/sagemaker_scripts/tabular_serve.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,7 @@ def transform_fn(model, request_body, input_content_type, output_content_type="a
7373
buf = bytes(request_body)
7474
payload = pickle.loads(buf)
7575
data = pd.read_parquet(BytesIO(payload["data"]))
76-
inference_kwargs = payload["inference_kwargs"]
77-
if inference_kwargs is None:
78-
inference_kwargs = {}
76+
inference_kwargs = payload.get("inference_kwargs", {})
7977

8078
else:
8179
raise ValueError(f"{input_content_type} input content type not supported.")

0 commit comments

Comments
 (0)