mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-09-14 21:45:37 -05:00
tempdir already a path
This commit is contained in:
@@ -92,7 +92,7 @@ class RemoteDocumentParser(RasterisedDocumentParser):
|
|||||||
result = poller.result()
|
result = poller.result()
|
||||||
|
|
||||||
# Download the PDF with embedded text
|
# 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:
|
with self.archive_path.open("wb") as f:
|
||||||
for chunk in client.get_analyze_result_pdf(
|
for chunk in client.get_analyze_result_pdf(
|
||||||
model_id="prebuilt-read",
|
model_id="prebuilt-read",
|
||||||
|
Reference in New Issue
Block a user