Spaces:
Running
Running
Update app.py
Browse files
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)
|