fix: usage of bytesio with docling-parse (#43)
Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
This commit is contained in:
parent
1347c01a9e
commit
fac5745dc8
@ -186,9 +186,7 @@ class DoclingParseDocumentBackend(PdfDocumentBackend):
|
|||||||
self._parser_doc = parser.find_cells(str(path_or_stream))
|
self._parser_doc = parser.find_cells(str(path_or_stream))
|
||||||
|
|
||||||
end_pb_time = time.time() - start_pb_time
|
end_pb_time = time.time() - start_pb_time
|
||||||
_log.info(
|
_log.info(f"Time to parse with docling-parse: time={end_pb_time:.3f}")
|
||||||
f"Time to parse {path_or_stream.name} with docling-parse: time={end_pb_time:.3f}"
|
|
||||||
)
|
|
||||||
|
|
||||||
def page_count(self) -> int:
|
def page_count(self) -> int:
|
||||||
return len(self._parser_doc["pages"])
|
return len(self._parser_doc["pages"])
|
||||||
|
Loading…
Reference in New Issue
Block a user