Update app.py
Browse files
app.py
CHANGED
@@ -472,11 +472,11 @@ def inference(image, task_type, instruction):
|
|
472 |
inputs = [gr.inputs.Image(type='pil'), gr.Audio(source="upload", type="filepath"), gr.Video(source="upload", type="filepath"), gr.inputs.Radio(choices=['Image Captioning', 'Video Captioning', 'Audio Captioning', "Visual Question Answering", "Visual Grounding", "General", "General Video"], type="value", default="Image Captioning", label="Task"), gr.inputs.Textbox(lines=1, label="Instruction")]
|
473 |
outputs = [gr.outputs.Image(type='pil'), 'text']
|
474 |
examples = [
|
475 |
-
['examples/images/soccer.jpg', 'Image Captioning', None],
|
476 |
-
['examples/images/ski.jpg', 'Visual Question Answering', 'what does the woman wearing black do?'],
|
477 |
-
['examples/images/banana.jpg', 'Visual Grounding', 'the detached banana'],
|
478 |
-
['examples/images/skateboard.jpg', 'General', 'which region does the text " a yellow bird " describe?'],
|
479 |
-
['examples/images/baseball.jpg', 'General', 'what color is the left car?']
|
480 |
]
|
481 |
|
482 |
title = "UnIVAL"
|
|
|
472 |
inputs = [gr.inputs.Image(type='pil'), gr.Audio(source="upload", type="filepath"), gr.Video(source="upload", type="filepath"), gr.inputs.Radio(choices=['Image Captioning', 'Video Captioning', 'Audio Captioning', "Visual Question Answering", "Visual Grounding", "General", "General Video"], type="value", default="Image Captioning", label="Task"), gr.inputs.Textbox(lines=1, label="Instruction")]
|
473 |
outputs = [gr.outputs.Image(type='pil'), 'text']
|
474 |
examples = [
|
475 |
+
['examples/images/soccer.jpg', None, None, 'Image Captioning', None],
|
476 |
+
['examples/images/ski.jpg', None, None, 'Visual Question Answering', 'what does the woman wearing black do?'],
|
477 |
+
['examples/images/banana.jpg', None, None, 'Visual Grounding', 'the detached banana'],
|
478 |
+
['examples/images/skateboard.jpg', None, None, 'General', 'which region does the text " a yellow bird " describe?'],
|
479 |
+
['examples/images/baseball.jpg', None, None, 'General', 'what color is the left car?']
|
480 |
]
|
481 |
|
482 |
title = "UnIVAL"
|