tempdir already a path

This commit is contained in:
shamoon
2025-09-11 13:49:30 -07:00
parent f400a8cb2f
commit e05639ae4e

View File

@@ -92,7 +92,7 @@ class RemoteDocumentParser(RasterisedDocumentParser):
result = poller.result()
# Download the PDF with embedded text
self.archive_path = Path(self.tempdir) / "archive.pdf"
self.archive_path = self.tempdir / "archive.pdf"
with self.archive_path.open("wb") as f:
for chunk in client.get_analyze_result_pdf(
model_id="prebuilt-read",