We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 579c131 commit 437f176Copy full SHA for 437f176
unstructured_inference/inference/layout.py
@@ -325,7 +325,7 @@ def process_data_with_model(
325
DocumentLayout by using a model identified by model_name."""
326
327
# Create a named temporary file without automatic deletion
328
- with tempfile.NamedTemporaryFile(delete=False, mode="w+b") as tmp_file:
+ with tempfile.NamedTemporaryFile(delete=False) as tmp_file:
329
tmp_filename = tmp_file.name
330
tmp_file.write(data.read())
331
tmp_file.flush() # Make sure the file is written out
0 commit comments