Spaces:
Runtime error
Runtime error
ivelin
commited on
Commit
·
e1b2bb3
1
Parent(s):
a218a91
fix: cleanup
Browse filesSigned-off-by: ivelin <ivelin.eth@gmail.com>
app.py
CHANGED
@@ -73,10 +73,8 @@ def process_refexp(image: Image, prompt: str):
|
|
73 |
title = "Demo: Donut 🍩 for UI RefExp"
|
74 |
description = "Gradio Demo for Donut RefExp task, an instance of `VisionEncoderDecoderModel` fine-tuned on UIBert RefExp Dataset (UI Referring Expression). 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."
|
75 |
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>"
|
76 |
-
examples = [
|
77 |
-
|
78 |
-
["example_2.jpg", "enter the text field next to the name"]
|
79 |
-
],
|
80 |
|
81 |
demo = gr.Interface(fn=process_refexp,
|
82 |
inputs=["image", "text"],
|
|
|
73 |
title = "Demo: Donut 🍩 for UI RefExp"
|
74 |
description = "Gradio Demo for Donut RefExp task, an instance of `VisionEncoderDecoderModel` fine-tuned on UIBert RefExp Dataset (UI Referring Expression). 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."
|
75 |
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>"
|
76 |
+
examples = [["example_1.jpg", "select the setting icon from top right corner"],
|
77 |
+
["example_2.jpg", "enter the text field next to the name"]]
|
|
|
|
|
78 |
|
79 |
demo = gr.Interface(fn=process_refexp,
|
80 |
inputs=["image", "text"],
|