Commit
·
a809de2
1
Parent(s):
cec8c4b
fixed naming of the demo
Browse files
app.py
CHANGED
@@ -40,16 +40,14 @@ def process_document(image, question):
|
|
40 |
|
41 |
return processor.token2json(sequence)
|
42 |
|
43 |
-
description = "Gradio Demo for
|
44 |
-
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>"
|
45 |
|
46 |
demo = gr.Interface(
|
47 |
fn=process_document,
|
48 |
inputs=["image", "text"],
|
49 |
outputs="json",
|
50 |
-
title="Demo:
|
51 |
description=description,
|
52 |
-
article=article,
|
53 |
enable_queue=True,
|
54 |
examples=[["Tesla_10Q_2023.png", "What is automotive sales revenue in 2022?"], ["Toshiba.png", "What is weight of VN-M150HE?"]],
|
55 |
cache_examples=False)
|
|
|
40 |
|
41 |
return processor.token2json(sequence)
|
42 |
|
43 |
+
description = "Neurons Lab Gradio Demo for document visual question answering. To use it, simply upload your image and type a question and click 'submit', or click one of the examples to load them. Read more at the links below."
|
|
|
44 |
|
45 |
demo = gr.Interface(
|
46 |
fn=process_document,
|
47 |
inputs=["image", "text"],
|
48 |
outputs="json",
|
49 |
+
title="Neurons Lab Demo: DocVQA",
|
50 |
description=description,
|
|
|
51 |
enable_queue=True,
|
52 |
examples=[["Tesla_10Q_2023.png", "What is automotive sales revenue in 2022?"], ["Toshiba.png", "What is weight of VN-M150HE?"]],
|
53 |
cache_examples=False)
|