Instructions to use impira/layoutlm-document-qa with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use impira/layoutlm-document-qa with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("document-question-answering", model="impira/layoutlm-document-qa")# Load model directly from transformers import AutoTokenizer, AutoModelForDocumentQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("impira/layoutlm-document-qa") model = AutoModelForDocumentQuestionAnswering.from_pretrained("impira/layoutlm-document-qa") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse filesAdd widget example
README.md
CHANGED
|
@@ -6,6 +6,11 @@ tags:
|
|
| 6 |
- layoutlm
|
| 7 |
- document-question-answering
|
| 8 |
- pdf
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
---
|
| 10 |
|
| 11 |
# LayoutLM for Visual Question Answering
|
|
|
|
| 6 |
- layoutlm
|
| 7 |
- document-question-answering
|
| 8 |
- pdf
|
| 9 |
+
widget:
|
| 10 |
+
- text: "What is the invoice number?"
|
| 11 |
+
src: "https://huggingface.co/spaces/impira/docquery/resolve/2359223c1837a7587402bda0f2643382a6eefeab/invoice.png"
|
| 12 |
+
- text: "What is the purchase amount?"
|
| 13 |
+
src: "https://huggingface.co/spaces/impira/docquery/resolve/2359223c1837a7587402bda0f2643382a6eefeab/contract.jpeg"
|
| 14 |
---
|
| 15 |
|
| 16 |
# LayoutLM for Visual Question Answering
|