RamAnanth1 commited on
Commit
28d3f7d
·
verified ·
1 Parent(s): 8b8976c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -22,12 +22,12 @@ article = "<p style='text-align: center'><a href='https://arxiv.org/pdf/2212.026
22
 
23
  demo = gr.Interface(
24
  fn=process_document,
25
- inputs=["image", "text"],
26
- outputs="text",
27
  title="Demo: UDOP for DocVQA",
28
  description=description,
29
  article=article,
30
- # examples=[["example_1.png", "When is the coffee break?"], ["example_2.jpeg", "What's the population of Stoddard?"]],
31
- cache_examples=False)
32
 
33
  demo.launch()
 
22
 
23
  demo = gr.Interface(
24
  fn=process_document,
25
+ inputs=["image", gr.Textbox(label = "Question" )],
26
+ outputs=gr.Textbox(label = "Response" )
27
  title="Demo: UDOP for DocVQA",
28
  description=description,
29
  article=article,
30
+ examples=[["example_1.png", "When is the coffee break?"]],
31
+ cache_examples=True)
32
 
33
  demo.launch()