Skip to content

Adib23704/ImageToStory-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image2Story AI

Image2Story AI is a web application that generates stories based on images using AI. Upload an image, and the application will analyze it to create a captivating story.

Features

  • Upload an image to generate a story.
  • Get both a caption and a detailed story for the uploaded image.
  • Modern and intuitive user interface.

Requirements

  • Node.js
  • npm (Node.js package manager)
  • An OpenAI & a HuggingFace account for API Keys.
  • OpenAI API Key - Get from here
  • HuggingFace API Key - Get from here

Installation

  1. Clone the repository:

    git clone https://github.com/Adib23704/ImageToStory-AI.git
  2. Install dependencies:

    npm install
  3. Configure environment values:

    • Make a copy of .env.example file.
    • Rename the copied file to .env
    • Open the file using notepad and configure the required values.
    • Optional: You may change the API_URL variable in /public/script.js if you are deploying the web under a domain/server.
  4. Start the server:

    npm start
  5. Open your web browser and navigate to http://localhost:3000 to access the application.

Usage

  1. Open the application in your web browser.
  2. Click on the "Select Image" button to choose an image from your device.
  3. The application will analyze the image and generate a caption and a detailed story.
  4. View the generated caption and story below the image.

Contributing

Contributions are welcome! Feel free to open issues or submit pull requests to improve the application.

License

This project is licensed under the MIT License.

About

Generate a good story based on a single image using HuggingFace (Blip) & LLM (GPT).

Resources

License

Stars

Watchers

Forks