mshukor HF staff commited on
Commit
ab8a6ba
·
1 Parent(s): fd7a576

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -469,11 +469,11 @@ def inference(image, task_type, instruction):
469
  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")]
470
  outputs = [gr.outputs.Image(type='pil'), 'text']
471
  examples = [
472
- # ['examples/caption/soccer.jpg', 'Image Captioning', None],
473
- # ['examples/sheep.jpg', 'Visual Question Answering', 'where are the cats?'],
474
- # ['examples/one_piece.jpeg', 'Visual Grounding', 'a man in a straw hat and a red dress'],
475
- ['examples/caption/skateboard.jpg', 'General', 'which region does the text " a grey car " describe?'],
476
- # ['examples/caption/baseball.jpg', 'General', 'what color is the left car?']
477
  ]
478
 
479
  title = "UnIVAL"
 
469
  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")]
470
  outputs = [gr.outputs.Image(type='pil'), 'text']
471
  examples = [
472
+ ['examples/images/soccer.jpg', 'Image Captioning', None],
473
+ ['examples/images/ski.jpg', 'Visual Question Answering', 'what does the woman wearing black do?'],
474
+ ['examples/images/banana.jpg', 'Visual Grounding', 'the detached banana'],
475
+ ['examples/images/skateboard.jpg', 'General', 'which region does the text " a yellow bird " describe?'],
476
+ ['examples/images/baseball.jpg', 'General', 'what color is the left car?']
477
  ]
478
 
479
  title = "UnIVAL"