Skip to content

Generates catchy Instagram captions and hashtags from uploaded images.

Notifications You must be signed in to change notification settings

June-24/CaptionCrafter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image Caption Generator with Deep Learning and Groq Cloud

Overview

This project is an Image Caption Generator application built using Streamlit. It leverages deep learning models to generate captions for images using a local trained model and also utilizes Groq Cloud for advanced caption generation. The application aims to provide users with catchy Instagram captions, relevant hashtags, and comments to enhance their social media presence.

deployed at: CaptionCrafter

Features

  • Image Upload: Users can upload images in JPG, JPEG, or PNG formats.
  • Caption Generation:
    • Local Model: Generates captions using a pre-trained Convolutional Neural Network (CNN) combined with Long Short-Term Memory (LSTM) networks trained on the Flickr30k dataset.
    • Groq Cloud Integration: Utilizes Groq's advanced API to generate high-quality captions and additional Instagram content.
  • Instagram Content Generation: Automatically generates catchy captions, hashtags, and comments tailored for Instagram.

Technologies Used

  • Streamlit: A Python library for creating web applications.
  • TensorFlow: For building and training the deep learning models.
  • Keras: A high-level neural networks API.
  • Groq: For cloud-based AI capabilities.
  • LangChain: For interfacing with Groq’s language model.

Installation

To run this project locally, follow these steps:

  1. Clone the repository

  2. Install the required dependencies:

    pip install -r requirements.txt
  3. Set up your environment variables in a secrets.toml file for the Groq API key (or keep a .env file and store the API key):

    [GROQ]
    API_KEY = "your_api_key_here"
  4. Run the Streamlit application:

    streamlit run app.py

Usage

  • Upload an image to generate captions.
  • Choose whether to use the local model or Groq Cloud for caption generation.
  • View the generated caption, hashtags, and a suggested comment for Instagram.

Contributing

Contributions are welcome! Please feel free to submit a pull request or open an issue if you find any bugs or have suggestions for improvements.

About

Generates catchy Instagram captions and hashtags from uploaded images.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages