How to use TusharGoel/LayoutLM-Finetuned-DocVQA with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("document-question-answering", model="TusharGoel/LayoutLM-Finetuned-DocVQA")
# Load model directly from transformers import AutoTokenizer, AutoModelForDocumentQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("TusharGoel/LayoutLM-Finetuned-DocVQA") model = AutoModelForDocumentQuestionAnswering.from_pretrained("TusharGoel/LayoutLM-Finetuned-DocVQA")