Add application file
Browse files
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 |
+
)
|