ivelin commited on
Commit
2c39dc2
·
1 Parent(s): a2780d6

fix: text cleanup

Browse files

Signed-off-by: ivelin <ivelin.eth@gmail.com>

Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -115,7 +115,7 @@ def process_refexp(image: Image, prompt: str):
115
 
116
 
117
  title = "Demo: Donut 🍩 for UI RefExp (by GuardianUI)"
118
- 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."
119
  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>"
120
  examples = [["example_1.jpg", "select the setting icon from top right corner"],
121
  ["example_1.jpg", "click on down arrow beside the entertainment"],
@@ -142,7 +142,8 @@ demo = gr.Interface(fn=process_refexp,
142
  description=description,
143
  article=article,
144
  examples=examples,
145
- cache_examples=True
 
146
  )
147
 
148
  demo.launch()
 
115
 
116
 
117
  title = "Demo: Donut 🍩 for UI RefExp (by GuardianUI)"
118
+ description = "Gradio Demo for Donut RefExp task, an instance of `VisionEncoderDecoderModel` fine-tuned on [UIBert RefExp](https://huggingface.co/datasets/ivelin/ui_refexp_saved) Dataset (UI Referring Expression). To use it, simply upload your image and type a prompt and click 'submit', or click one of the examples to load them. Read more at the links below."
119
  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>"
120
  examples = [["example_1.jpg", "select the setting icon from top right corner"],
121
  ["example_1.jpg", "click on down arrow beside the entertainment"],
 
142
  description=description,
143
  article=article,
144
  examples=examples,
145
+ # caching examples inference takes too long to start space after app change commit
146
+ cache_examples=False
147
  )
148
 
149
  demo.launch()