Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,22 @@ def process_document(image):
|
|
39 |
|
40 |
return processor.token2json(sequence)
|
41 |
|
42 |
-
description = "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2111.15664' target='_blank'>Donut: OCR-free Document Understanding Transformer</a> | <a href='https://github.com/clovaai/donut' target='_blank'>Github Repo</a></p>"
|
44 |
|
45 |
demo = gr.Interface(
|
|
|
39 |
|
40 |
return processor.token2json(sequence)
|
41 |
|
42 |
+
description = "This is a demo using Donut model finetuned on Invoices for retrieval of following information:
|
43 |
+
|
44 |
+
- DocType
|
45 |
+
- Currency
|
46 |
+
- DocumentDate
|
47 |
+
- GrossAmount
|
48 |
+
- InvoiceNumber
|
49 |
+
- NetAmount
|
50 |
+
- TaxAmount
|
51 |
+
- OrderNumber
|
52 |
+
- CreditorCountry
|
53 |
+
|
54 |
+
To use it, simply upload your image and click 'submit', or click one of the examples to load them. Read more at the links below.
|
55 |
+
|
56 |
+
**Have fun!**
|
57 |
+
Toon Beerten"
|
58 |
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2111.15664' target='_blank'>Donut: OCR-free Document Understanding Transformer</a> | <a href='https://github.com/clovaai/donut' target='_blank'>Github Repo</a></p>"
|
59 |
|
60 |
demo = gr.Interface(
|