JustinLin610 commited on
Commit
9ff4f10
1 Parent(s): ce70989
Files changed (3) hide show
  1. app.py +3 -1
  2. flowers.jpg +0 -0
  3. one_piece.jpeg +0 -0
app.py CHANGED
@@ -148,7 +148,9 @@ description = "Gradio Demo for OFA-Visual_Grounding. Upload your own image or cl
148
  "Then click \"Submit\" and wait for the result of grounding. "
149
  article = "<p style='text-align: center'><a href='https://github.com/OFA-Sys/OFA' target='_blank'>OFA Github " \
150
  "Repo</a></p> "
151
- examples = [['pokemons.jpg', 'a blue turtle-like pokemon with round head']]
 
 
152
  io = gr.Interface(fn=visual_grounding, inputs=[gr.inputs.Image(type='pil'), "textbox"],
153
  outputs=gr.outputs.Image(type='numpy'),
154
  title=title, description=description, article=article, examples=examples,
 
148
  "Then click \"Submit\" and wait for the result of grounding. "
149
  article = "<p style='text-align: center'><a href='https://github.com/OFA-Sys/OFA' target='_blank'>OFA Github " \
150
  "Repo</a></p> "
151
+ examples = [['pokemons.jpg', 'a blue turtle-like pokemon with round head'],
152
+ ['one_piece.jpeg', 'a man in a straw hat and a red dress'],
153
+ ['flowers.jpg', 'a white vase and pink flowers']]
154
  io = gr.Interface(fn=visual_grounding, inputs=[gr.inputs.Image(type='pil'), "textbox"],
155
  outputs=gr.outputs.Image(type='numpy'),
156
  title=title, description=description, article=article, examples=examples,
flowers.jpg ADDED
one_piece.jpeg ADDED