yangapku commited on
Commit
54c1afe
1 Parent(s): 1cdf39b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -146,7 +146,7 @@ description = "Gradio Demo for OFA-Visual_Question_Answering. Upload your own im
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)
 
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?'], ['Starry_Night.jpeg', 'what style does the picture belong to?']]
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)