Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,25 @@ 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 = "<p><span style="font-size:14px">Using Donut model finetuned on Invoices for retrieval of following information:</span></p>
|
43 |
+
|
44 |
+
<ul>
|
45 |
+
<li><span style="font-size:14px"><span style="font-family:Calibri"><span style="color:black">DocType</span></span></span></li>
|
46 |
+
<li><span style="font-size:14px"><span style="font-family:Calibri"><span style="color:black">Currency</span></span></span></li>
|
47 |
+
<li><span style="font-size:14px"><span style="font-family:Calibri"><span style="color:black">DocumentDate</span></span></span></li>
|
48 |
+
<li><span style="font-size:14px"><span style="font-family:Calibri"><span style="color:black">GrossAmount</span></span></span></li>
|
49 |
+
<li><span style="font-size:14px"><span style="font-family:Calibri"><span style="color:black">InvoiceNumber</span></span></span></li>
|
50 |
+
<li><span style="font-size:14px"><span style="font-family:Calibri"><span style="color:black">NetAmount</span></span></span></li>
|
51 |
+
<li><span style="font-size:14px"><span style="font-family:Calibri"><span style="color:black">TaxAmount</span></span></span></li>
|
52 |
+
<li><span style="font-size:14px"><span style="font-family:Calibri"><span style="color:black">OrderNumber</span></span></span></li>
|
53 |
+
<li><span style="font-size:14px"><span style="font-family:Calibri"><span style="color:black">CreditorCountry</span></span></span></li>
|
54 |
+
</ul>
|
55 |
+
|
56 |
+
<p>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.</p>
|
57 |
+
|
58 |
+
<p> </p>
|
59 |
+
|
60 |
+
<p style="text-align:right"><span style="font-size:14px">Toon Beerten</span></p>"
|
61 |
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>"
|
62 |
|
63 |
demo = gr.Interface(
|