From 374ecd48906af8be5d7f9cc9ec65bb7062efb6b6 Mon Sep 17 00:00:00 2001 From: Peter Staar Date: Sun, 18 May 2025 10:58:39 +0200 Subject: [PATCH] fixed the static load_from_doctags Signed-off-by: Peter Staar --- docling/pipeline/vlm_pipeline.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docling/pipeline/vlm_pipeline.py b/docling/pipeline/vlm_pipeline.py index 9fb68abd..8acd471c 100644 --- a/docling/pipeline/vlm_pipeline.py +++ b/docling/pipeline/vlm_pipeline.py @@ -237,7 +237,9 @@ class VlmPipeline(PaginatedPipeline): doctags_doc = DocTagsDocument.from_doctags_and_image_pairs( doctags_list_c, image_list_c ) - conv_res.document.load_from_doctags(doctags_doc) + conv_res.document = DoclingDocument.load_from_doctags( + doctag_document=doctags_doc + ) # If forced backend text, replace model predicted text with backend one if page.size: