Fix empty docling document
Browse files`load_from_doctags` returns `DoclingDocument` loaded from `DocTags`. The returned document should be used for any further processing.
README.md
CHANGED
|
@@ -83,7 +83,7 @@ print("\n\n")
|
|
| 83 |
doctags_doc = DocTagsDocument.from_doctags_and_image_pairs([output], [pil_image])
|
| 84 |
# create a docling document
|
| 85 |
doc = DoclingDocument(name="SampleDocument")
|
| 86 |
-
doc.load_from_doctags(doctags_doc)
|
| 87 |
|
| 88 |
## Export as any format
|
| 89 |
# Markdown
|
|
|
|
| 83 |
doctags_doc = DocTagsDocument.from_doctags_and_image_pairs([output], [pil_image])
|
| 84 |
# create a docling document
|
| 85 |
doc = DoclingDocument(name="SampleDocument")
|
| 86 |
+
doc = doc.load_from_doctags(doctags_doc)
|
| 87 |
|
| 88 |
## Export as any format
|
| 89 |
# Markdown
|