text: 
  
  TITLE
  Add Visual Question Answering (VQA) pipeline
  
  COMMENTS
  3
  
  REACTIONS
  +1: 0
  -1: 0
  laugh: 0
  hooray: 0
  heart: 0
  rocket: 0
  eyes: 0
  
  BODY
  ### Feature request
  
  We currently have [ViLT](https://huggingface.co/docs/transformers/model_doc/vilt) in the library, which, among other tasks, is capable of performing visual question answering (VQA).
  
  It would be great to have a pipeline for this task, with the following API:
  
  ```
  from transformers import pipeline
  
  pipe = pipeline("vqa")
  pipe("cats.png", "how many cats are there?")
  ```
  
  This pipeline could default to the https://huggingface.co/dandelin/vilt-b32-finetuned-vqa checkpoint. Also check out the [Space](https://huggingface.co/spaces/nielsr/vilt-vqa) that showcases the model.
  
  This can be implemented similar to [other pipelines](https://github.com/huggingface/transformers/tree/main/src/transformers/pipelines). For an example PR that added a pipeline, see #11598.
  
  ### Motivation
  
  A pipeline is required in order to have inference widgets + a task defined at hf.co/tasks.
  
  Moreover, it would be great to do VQA in two lines of code.
  
  ### Your contribution
  
  I can definitely assist in this, together with @Narsil, who's the pipeline expert. 