sagnak merve HF staff commited on
Commit
5f27df1
1 Parent(s): afcfb79

Added docvqa and screen2words examples in the app (#6)

Browse files

- Added docvqa and screen2words examples in the app (fb22b57923558b03e620bbbe1d29b99a6daeaec5)


Co-authored-by: Merve Noyan <merve@users.noreply.huggingface.co>

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,