Skip to content

Commit 437f176

Browse files
committed
Not needed.
1 parent 579c131 commit 437f176

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unstructured_inference/inference/layout.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ def process_data_with_model(
325325
DocumentLayout by using a model identified by model_name."""
326326

327327
# Create a named temporary file without automatic deletion
328-
with tempfile.NamedTemporaryFile(delete=False, mode="w+b") as tmp_file:
328+
with tempfile.NamedTemporaryFile(delete=False) as tmp_file:
329329
tmp_filename = tmp_file.name
330330
tmp_file.write(data.read())
331331
tmp_file.flush() # Make sure the file is written out

0 commit comments

Comments
 (0)