Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -129,11 +129,8 @@ def model_inference(
|
|
129 |
doctag_output = doctag_output.replace("<chart>", "<otsl>").replace("</chart>", "</otsl>")
|
130 |
doctag_output = re.sub(r'(<loc_500>)(?!.*<loc_500>)<[^>]+>', r'\1', doctag_output)
|
131 |
|
132 |
-
print(doctag_output)
|
133 |
-
|
134 |
doctags_doc = DocTagsDocument.from_doctags_and_image_pairs([doctag_output], images)
|
135 |
doc.load_from_doctags(doctags_doc)
|
136 |
-
print(doc)
|
137 |
yield f"**MD Output:**\n\n{doc.export_to_markdown()}"
|
138 |
|
139 |
examples=[[{"text": "Convert this page to docling.", "files": ["example_images/2d0fbcc50e88065a040a537b717620e964fb4453314b71d83f3ed3425addcef6.png"]}],
|
|
|
129 |
doctag_output = doctag_output.replace("<chart>", "<otsl>").replace("</chart>", "</otsl>")
|
130 |
doctag_output = re.sub(r'(<loc_500>)(?!.*<loc_500>)<[^>]+>', r'\1', doctag_output)
|
131 |
|
|
|
|
|
132 |
doctags_doc = DocTagsDocument.from_doctags_and_image_pairs([doctag_output], images)
|
133 |
doc.load_from_doctags(doctags_doc)
|
|
|
134 |
yield f"**MD Output:**\n\n{doc.export_to_markdown()}"
|
135 |
|
136 |
examples=[[{"text": "Convert this page to docling.", "files": ["example_images/2d0fbcc50e88065a040a537b717620e964fb4453314b71d83f3ed3425addcef6.png"]}],
|