Skip to content

Commit e024795

Browse files
fix: remove .strip() from batch transform (#1383)
`strip()` essentially blocks users from creating valid outputs with new line separators.
1 parent 1d94c99 commit e024795

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sagemaker/local/entities.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ def _perform_batch_inference(self, input_data, output_data, **kwargs):
356356
)
357357

358358
response_body = response["Body"]
359-
data = response_body.read().strip()
359+
data = response_body.read()
360360
response_body.close()
361361
f.write(data)
362362
if "AssembleWith" in output_data and output_data["AssembleWith"] == "Line":

0 commit comments

Comments
 (0)