fix: usage of bytesio with docling-parse (#43)

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
This commit is contained in:
Michele Dolfi 2024-08-22 12:59:49 +02:00 committed by GitHub
parent 1347c01a9e
commit fac5745dc8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -186,9 +186,7 @@ class DoclingParseDocumentBackend(PdfDocumentBackend):
self._parser_doc = parser.find_cells(str(path_or_stream))
end_pb_time = time.time() - start_pb_time
_log.info(
f"Time to parse {path_or_stream.name} with docling-parse: time={end_pb_time:.3f}"
)
_log.info(f"Time to parse with docling-parse: time={end_pb_time:.3f}")
def page_count(self) -> int:
return len(self._parser_doc["pages"])