yangapku commited on
Commit
49adf0e
β€’
1 Parent(s): 0d735a2

update examples

Browse files
README.md CHANGED
@@ -1,6 +1,6 @@
1
  ---
2
  title: OFA-Open_Domain_VQA
3
- emoji: πŸ’©
4
  colorFrom: blue
5
  colorTo: pink
6
  sdk: gradio
1
  ---
2
  title: OFA-Open_Domain_VQA
3
+ emoji: πŸ‘‘
4
  colorFrom: blue
5
  colorTo: pink
6
  sdk: gradio
airship.jpg DELETED
Binary file (420 kB)
app.py CHANGED
@@ -142,11 +142,11 @@ def open_domain_vqa(Image, Question):
142
 
143
 
144
  title = "OFA-Open_Domain_VQA"
145
- description = "Gradio Demo for OFA-Open_Domain_VQA. Upload your own image or click any one of the examples, and click " \
146
  "\"Submit\" and then wait for OFA's answer. "
147
  article = "<p style='text-align: center'><a href='https://github.com/OFA-Sys/OFA' target='_blank'>OFA Github " \
148
  "Repo</a></p> "
149
- examples = [['money_tree.png', 'what is grown on the plant?'], ['airship.jpg', 'what does the red-roofed building right to the big airship look like?'], ['sitting_man.png', 'what is the man sitting on?']]
150
  io = gr.Interface(fn=open_domain_vqa, inputs=[gr.inputs.Image(type='pil'), "textbox"], outputs=gr.outputs.Textbox(label="Answer"),
151
  title=title, description=description, article=article, examples=examples,
152
  allow_flagging=False, allow_screenshot=False)
142
 
143
 
144
  title = "OFA-Open_Domain_VQA"
145
+ description = "Gradio Demo for OFA-Open_Domain_VQA. Upload your own image (high-resolution images are recommended) or click any one of the examples, and click " \
146
  "\"Submit\" and then wait for OFA's answer. "
147
  article = "<p style='text-align: center'><a href='https://github.com/OFA-Sys/OFA' target='_blank'>OFA Github " \
148
  "Repo</a></p> "
149
+ examples = [['cat-4894153_1920.jpg', 'where are the cats?'], ['men-6245003_1920.jpg', 'how many people are in the image?'], ['labrador-retriever-7004193_1920.jpg', 'what breed is the dog in the picture?']]
150
  io = gr.Interface(fn=open_domain_vqa, inputs=[gr.inputs.Image(type='pil'), "textbox"], outputs=gr.outputs.Textbox(label="Answer"),
151
  title=title, description=description, article=article, examples=examples,
152
  allow_flagging=False, allow_screenshot=False)
cat-4894153_1920.jpg ADDED
labrador-retriever-7004193_1920.jpg ADDED
men-6245003_1920.jpg ADDED
money_tree.png DELETED
Binary file (121 kB)
sitting_man.png DELETED
Binary file (54.1 kB)