using GPT for image and video captioning