Spaces:
Running
Running
metadata
title: Image Captioning
emoji: π
colorFrom: purple
colorTo: green
sdk: gradio
sdk_version: 5.34.1
app_file: app.py
pinned: false
license: mit
short_description: 'It is the task of generating a descriptive sentence '
π§ Image Captioning with CLIP and GPT-4 (Concept Demo)
This Hugging Face Space is based on the article:
π Image Captioning with CLIP and GPT-4 β C# Corner
π What it does:
- Takes an image as input.
- Uses CLIP (Contrastive LanguageβImage Pretraining) to understand the image.
- Simulates how a GPT-style model could use visual features to generate a caption.
Note: GPT-4 Vision API isn't open-sourced, so this Space shows a conceptual demo using CLIP.
π¦ Models Used
openai/clip-vit-base-patch32
(via Hugging Face Transformers)
π‘ Future Extensions
- Connect CLIP output to a real LLM like GPT via prompt engineering or fine-tuned decoder.
- Add multiple caption options or refinement steps.
Created for educational use by adapting content from the article.
Check the full article here:
π https://www.c-sharpcorner.com/article/image-captioning-with-clip-and-gpt-4/