nielsr HF staff commited on
Commit
7406a0d
·
1 Parent(s): fb6be5e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -48,11 +48,8 @@ demo = gr.Interface(
48
  description = "Gradio Demo for Donut, an instance of `VisionEncoderDecoderModel` fine-tuned on DocVQA (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."
49
  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>"
50
 
51
- image = gr.inputs.Image(type="pil")
52
- question = gr.inputs.Textbox(label="Question")
53
-
54
  interface = gr.Interface(fn=answer_question,
55
- inputs=[image, question],
56
  outputs="json",
57
  examples=examples,
58
  title=title,
 
48
  description = "Gradio Demo for Donut, an instance of `VisionEncoderDecoderModel` fine-tuned on DocVQA (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."
49
  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>"
50
 
 
 
 
51
  interface = gr.Interface(fn=answer_question,
52
+ inputs=["image", "text"],
53
  outputs="json",
54
  examples=examples,
55
  title=title,