Skip to content

Commit

Permalink
Not needed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Falven committed Jul 9, 2024
1 parent 579c131 commit 437f176
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unstructured_inference/inference/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def process_data_with_model(
DocumentLayout by using a model identified by model_name."""

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

0 comments on commit 437f176

Please sign in to comment.