Travad98 commited on
Commit
9aa6f03
β€’
1 Parent(s): 0d18ad3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -39,18 +39,18 @@ def process_document(image):
39
 
40
  return processor.token2json(sequence)
41
 
42
- description = "Gradio Demo for Donut, an instance of `VisionEncoderDecoderModel` fine-tuned on extracted SOGC Trademark dataset. 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."
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(
46
  fn=process_document,
47
  inputs="image",
48
  outputs="json",
49
- title="Demo: Donut 🍩 for Document Parsing",
50
  description=description,
51
  article=article,
52
  enable_queue=True,
53
- examples=[["sha-001_1883_1__21_d-0-6.jpg", "sha-001_1929_47__236_d-1-10.jpg"]],
54
  cache_examples=False)
55
 
56
  demo.launch()
 
39
 
40
  return processor.token2json(sequence)
41
 
42
+ description = "Gradio-based demo for Donut, an instance of VisionEncoderDecoderModel fine-tuned on the sogc-trademark-1883-2001 dataset. 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."
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(
46
  fn=process_document,
47
  inputs="image",
48
  outputs="json",
49
+ title="Donut 🍩 for Swiss trademark registration events",
50
  description=description,
51
  article=article,
52
  enable_queue=True,
53
+ examples=[["example-1.jpg", "example-2.jpg", "example-3.jpg", "example-4.jpg", "example-5.jpg",]],
54
  cache_examples=False)
55
 
56
  demo.launch()