Skip to content

Commit

Permalink
fix: usage of bytesio with docling-parse (#43)
Browse files Browse the repository at this point in the history
Signed-off-by: Michele Dolfi <[email protected]>
  • Loading branch information
dolfim-ibm authored Aug 22, 2024
1 parent 1347c01 commit fac5745
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docling/backend/docling_parse_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,7 @@ def __init__(self, path_or_stream: Union[BytesIO, Path]):
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"])
Expand Down

0 comments on commit fac5745

Please sign in to comment.