Instructions to use impira/layoutlm-invoices with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use impira/layoutlm-invoices with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("document-question-answering", model="impira/layoutlm-invoices")# Load model directly from transformers import AutoTokenizer, AutoModelForDocumentQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("impira/layoutlm-invoices") model = AutoModelForDocumentQuestionAnswering.from_pretrained("impira/layoutlm-invoices", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Fix _name_or_path in config.json
#2
by Spacefish007 - opened
- config.json +1 -1
config.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "impira/layoutlm-
|
| 3 |
"architectures": [
|
| 4 |
"LayoutLMForQuestionAnswering"
|
| 5 |
],
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "impira/layoutlm-invoices",
|
| 3 |
"architectures": [
|
| 4 |
"LayoutLMForQuestionAnswering"
|
| 5 |
],
|