Skip to content

Commit

Permalink
fix file mode
Browse files Browse the repository at this point in the history
  • Loading branch information
iammosespaulr committed Dec 10, 2024
1 parent 6b922e3 commit 3cc64ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def main():
row = dataset[i]
pdf = row["pdf"]
tool_pages = {}
with tempfile.NamedTemporaryFile(suffix=".pdf", mode='w') as f:
with tempfile.NamedTemporaryFile(suffix=".pdf", mode='wb') as f:
f.write(pdf)
f.seek(0)
pdf_path = f.name
Expand Down

0 comments on commit 3cc64ae

Please sign in to comment.