src/transformers/pipelines/image_to_text.py/ImageToTextPipeline/postprocess
class ImageToTextPipeline:    def postprocess(self, model_outputs):
        records = []
        for output_ids in model_outputs:
            record = {
                "generated_text": self.tokenizer.decode(
                    output_ids,
                    skip_special_tokens=True,
                )
            }
            records.append(record)
        return records