sarim commited on
Commit
98c9c9c
·
1 Parent(s): 50b1bcd

Add application file

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from transformers import pipeline
2
+
3
+ nlp = pipeline(
4
+ "document-question-answering",
5
+ model="impira/layoutlm-document-qa",
6
+ )
7
+
8
+ nlp(
9
+ "https://templates.invoicehome.com/invoice-template-us-neat-750px.png",
10
+ "What is the invoice number?"
11
+ )