mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-27 04:24:45 +00:00
fixed the static load_from_doctags
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
This commit is contained in:
parent
1ada7bfee7
commit
374ecd4890
@ -237,7 +237,9 @@ class VlmPipeline(PaginatedPipeline):
|
|||||||
doctags_doc = DocTagsDocument.from_doctags_and_image_pairs(
|
doctags_doc = DocTagsDocument.from_doctags_and_image_pairs(
|
||||||
doctags_list_c, image_list_c
|
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 forced backend text, replace model predicted text with backend one
|
||||||
if page.size:
|
if page.size:
|
||||||
|
Loading…
Reference in New Issue
Block a user