update load_from_doctags usage
Browse files
README.md
CHANGED
|
@@ -82,8 +82,7 @@ print("\n\n")
|
|
| 82 |
# Populate document
|
| 83 |
doctags_doc = DocTagsDocument.from_doctags_and_image_pairs([output], [pil_image])
|
| 84 |
# create a docling document
|
| 85 |
-
doc = DoclingDocument(
|
| 86 |
-
doc.load_from_doctags(doctags_doc)
|
| 87 |
|
| 88 |
## Export as any format
|
| 89 |
# Markdown
|
|
|
|
| 82 |
# Populate document
|
| 83 |
doctags_doc = DocTagsDocument.from_doctags_and_image_pairs([output], [pil_image])
|
| 84 |
# create a docling document
|
| 85 |
+
doc = DoclingDocument.load_from_doctags(doctags_doc, document_name="SampleDocument")
|
|
|
|
| 86 |
|
| 87 |
## Export as any format
|
| 88 |
# Markdown
|