Instructions to use monuirctc/invoice-extraction with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use monuirctc/invoice-extraction with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="monuirctc/invoice-extraction")# Load model directly from transformers import AutoProcessor, AutoModelForTokenClassification processor = AutoProcessor.from_pretrained("monuirctc/invoice-extraction") model = AutoModelForTokenClassification.from_pretrained("monuirctc/invoice-extraction", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Inference - KeyError
#1
by MelanieKoe - opened
Hey, what input does the model require? The Inference-API on huggingface says List[str] but I think layoutlmv2 is for understanding images of documents? Anyways I get a Keyerror for layoutlmv2 and can't install it with conda - do you have any advice?
Thank you :)