swarms/examples/models/layout_documentxlm_example.py

9 lines
194 B

from swarms.models import LayoutLMDocumentQA
model = LayoutLMDocumentQA()
# Place an image of a financial document
out = model("What is the total amount?", "images/swarmfest.png")
print(out)