Fixed extract_text_from_backend definition

Signed-off-by: Maksym Lysak <mly@zurich.ibm.com>
This commit is contained in:
Maksym Lysak 2025-03-19 14:13:05 +01:00
parent a9cf823187
commit 16664f2cd6

View File

@ -92,7 +92,7 @@ class VlmPipeline(PaginatedPipeline):
return page return page
def extract_text_from_backend( def extract_text_from_backend(
self, page: Page, bbox: Union[BoundingBox | None] self, page: Page, bbox: Union[BoundingBox, None]
) -> str: ) -> str:
# Convert bounding box normalized to 0-100 into page coordinates for cropping # Convert bounding box normalized to 0-100 into page coordinates for cropping
text = "" text = ""