Skip to content

AyushJagaty/SocialMediaCaptionGenerator

Repository files navigation

Social Media Caption Generator

This GitHub repository contains the source code for a Flutter app that utilizes Google's Gemini Generative AI API to generate creative captions for social media posts based on images and user-provided prompts.

Features:

  • Image Selection: Select images from your device's gallery to enhance caption generation accuracy.
  • Prompt Input: Provide specific details or keywords to guide the caption style and content.
  • Caption Generation: Leverage the Gemini API to automatically generate creative and engaging captions tailored to your social media needs.
  • Intuitive Interface: Enjoy a user-friendly interface for easy image selection, prompt editing, and caption generation.

Usage:

  1. Obtain Google Generative AI API Key:

    • Follow the instructions on Google's AI research website to create a project and obtain an API key.
  2. Replace API Key:

    • Open lib/main.dart and replace the placeholder value (YOUR_API_KEY) with your actual API key in the GenerativeModel constructor.
  3. Run the app:

    • Connect your device or launch an emulator.
    • Run the app using flutter run.

Example Workflow:

  1. Launch the app.
  2. Tap the gallery icon in the app bar to select an image.
  3. Enter a descriptive prompt in the text field, specifying the desired caption style
    or key points to consider.
  4. Click the "Generate Caption" button.
  5. The app will display a loading indicator while processing your request.
  6. Upon successful generation, the app will display a creative caption tailored to your image and prompt.

Contributing:

We welcome contributions to improve this project. Please follow these guidelines:

  • Create a pull request with clear explanations of your changes.
  • Adhere to the code style and formatting conventions used in the project.

Additional Notes:

  • Consider including a screenshot or video demonstrating the app's functionality in the README.
  • Provide details on error handling and user feedback mechanisms in the app.
  • If you're using a specific version of Google Generative AI, mention it in the README.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published