sbapan41 commited on
Commit
c2402a1
·
verified ·
1 Parent(s): 49408f9

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -4
README.md CHANGED
@@ -34,23 +34,23 @@ from transformers import pipeline
34
 
35
  nlp = pipeline(
36
  "document-question-answering",
37
- model="Quantamhash/Quantum_Doc_QA",
38
  )
39
 
40
  nlp(
41
- "https://huggingface.co/datasets/Quantamhash/Assets/resolve/main/images/invoice-template-us-neat-750px.png",
42
  "What is the invoice number?"
43
  )
44
  # {'score': 0.9943977, 'answer': 'us-001', 'start': 15, 'end': 15}
45
 
46
  nlp(
47
- "https://huggingface.co/datasets/Quantamhash/Assets/resolve/main/images/1_iECQRIiOGTmEFLdWkVIH2g.jpg",
48
  "What is the purchase amount?"
49
  )
50
  # {'score': 0.9912159, 'answer': '$1,000,000,000', 'start': 97, 'end': 97}
51
 
52
  nlp(
53
- "https://huggingface.co/datasets/Quantamhash/Assets/resolve/main/images/income-statement-example%402x.webp",
54
  "What are the 2020 net sales?"
55
  )
56
  # {'score': 0.59147286, 'answer': '$ 3,750', 'start': 19, 'end': 20}
 
34
 
35
  nlp = pipeline(
36
  "document-question-answering",
37
+ model="impira/layoutlm-document-qa",
38
  )
39
 
40
  nlp(
41
+ "https://templates.invoicehome.com/invoice-template-us-neat-750px.png",
42
  "What is the invoice number?"
43
  )
44
  # {'score': 0.9943977, 'answer': 'us-001', 'start': 15, 'end': 15}
45
 
46
  nlp(
47
+ "https://miro.medium.com/max/787/1*iECQRIiOGTmEFLdWkVIH2g.jpeg",
48
  "What is the purchase amount?"
49
  )
50
  # {'score': 0.9912159, 'answer': '$1,000,000,000', 'start': 97, 'end': 97}
51
 
52
  nlp(
53
+ "https://www.accountingcoach.com/wp-content/uploads/2013/10/income-statement-example@2x.png",
54
  "What are the 2020 net sales?"
55
  )
56
  # {'score': 0.59147286, 'answer': '$ 3,750', 'start': 19, 'end': 20}