mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-30 14:04:27 +00:00
make vlm_pipeline python3.9 compatible
Signed-off-by: Maksym Lysak <mly@zurich.ibm.com>
This commit is contained in:
parent
9182d8a622
commit
a9cf823187
@ -91,7 +91,9 @@ class VlmPipeline(PaginatedPipeline):
|
||||
|
||||
return page
|
||||
|
||||
def extract_text_from_backend(self, page: Page, bbox: BoundingBox | None) -> str:
|
||||
def extract_text_from_backend(
|
||||
self, page: Page, bbox: Union[BoundingBox | None]
|
||||
) -> str:
|
||||
# Convert bounding box normalized to 0-100 into page coordinates for cropping
|
||||
text = ""
|
||||
if bbox:
|
||||
|
Loading…
Reference in New Issue
Block a user