Skip to content

CaptionCraft is an innovative tool that leverages generative AI to create catchy, engaging captions for any image. Users can upload an image or provide an image URL, and CaptionCraft will analyze the visual content to generate a tailored caption to make your images stand out.

Notifications You must be signed in to change notification settings

abhijitchavda/CaptionCraft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CaptionCraft

Transform your photos into shareable moments with AI-generated, attention-grabbing captions. CaptionCraft uses state-of-the-art AI models to analyze images and generate catchy captions for your social media posts.

Features

  • Image Upload: Upload an image directly from your device to generate a caption.
  • Image URL: Provide an image URL to generate a caption for the image hosted online.
  • AI-Powered: Utilizes advanced AI models for accurate image description and creative caption generation.

Installation

To run CaptionCraft locally, you need to install the following dependencies:

pip install transformers torch pillow requests gradio langchain-experimental

Make sure you also have Ollama running on localhost at port 11434 with the “mistral:instruct” model downloaded.

Overview

Here’s a brief overview of the main components:

  • BLIP Model: Used to generate descriptions of the images using HuggingFace provided library.
  • Ollama: Utilized for creating catchy captions based on the image descriptions.
  • Gradio: Provides a user-friendly interface for interacting with the application.

Usage

  • Upload an Image: Click on “Upload an image” to upload an image file from your device. The app will generate a catchy caption for the image.
  • Provide Image URL: Click on “Provide image URL” to paste an image URL. The app will fetch the image and generate a caption.

UI

Upload Image Upload Image URL

Contributing

Contributions are welcome! Please feel free to submit a Pull Request or open an Issue for any improvements or suggestions.

About

CaptionCraft is an innovative tool that leverages generative AI to create catchy, engaging captions for any image. Users can upload an image or provide an image URL, and CaptionCraft will analyze the visual content to generate a tailored caption to make your images stand out.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published