Spaces:
Running
Running
update examples
Browse files- README.md +1 -1
- airship.jpg +0 -0
- app.py +2 -2
- cat-4894153_1920.jpg +0 -0
- labrador-retriever-7004193_1920.jpg +0 -0
- men-6245003_1920.jpg +0 -0
- money_tree.png +0 -0
- sitting_man.png +0 -0
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 = [['
|
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)
|
|