merve HF staff commited on
Commit
fb22b57
1 Parent(s): 3fbe084

Added docvqa and screen2words examples in the app

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -76,7 +76,8 @@ with gr.Blocks(css=css) as demo:
76
  vqa_btn = gr.Button("Answer Visual Question")
77
 
78
  gr.Examples(
79
- [["assets/vqa_example_1.png", "How is this made?"], ["assets/vqa_example_2.png", "What is this flower and where is it's origin?"]],
 
80
  inputs = [image_input, text_input],
81
  outputs = [vqa_output],
82
  fn=predict,
 
76
  vqa_btn = gr.Button("Answer Visual Question")
77
 
78
  gr.Examples(
79
+ [["assets/vqa_example_1.png", "How is this made?"], ["assets/vqa_example_2.png", "What is this flower and where is it's origin?"],
80
+ ["assets/docvqa_example.png", "How many items are sold?"], ["assets/screen2words_ui_example.png", "What is this app about?"]],
81
  inputs = [image_input, text_input],
82
  outputs = [vqa_output],
83
  fn=predict,