Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -146,13 +146,12 @@ title = "OFA-Visual_Grounding"
|
|
146 |
description = "Gradio Demo for OFA-Visual_Grounding. Upload your own image or click any one of the examples, " \
|
147 |
"and write a description about a certain object. " \
|
148 |
"Then click \"Submit\" and wait for the result of grounding. "
|
149 |
-
|
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,
|
157 |
allow_flagging=False, allow_screenshot=False)
|
158 |
io.launch()
|
|
|
146 |
description = "Gradio Demo for OFA-Visual_Grounding. Upload your own image or click any one of the examples, " \
|
147 |
"and write a description about a certain object. " \
|
148 |
"Then click \"Submit\" and wait for the result of grounding. "
|
149 |
+
|
|
|
150 |
examples = [['pokemons.jpg', 'a blue turtle-like pokemon with round head'],
|
151 |
['one_piece.jpeg', 'a man in a straw hat and a red dress'],
|
152 |
['flowers.jpg', 'a white vase and pink flowers']]
|
153 |
io = gr.Interface(fn=visual_grounding, inputs=[gr.inputs.Image(type='pil'), "textbox"],
|
154 |
outputs=gr.outputs.Image(type='numpy'),
|
155 |
+
title=title, description=description, examples=examples,
|
156 |
allow_flagging=False, allow_screenshot=False)
|
157 |
io.launch()
|