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.
- Upload an image to generate a story.
- Get both a caption and a detailed story for the uploaded image.
- Modern and intuitive user interface.
- 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
-
Clone the repository:
git clone https://github.com/Adib23704/ImageToStory-AI.git
-
Install dependencies:
npm install
-
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.
- Make a copy of
-
Start the server:
npm start
-
Open your web browser and navigate to http://localhost:3000 to access the application.
- Open the application in your web browser.
- Click on the "Select Image" button to choose an image from your device.
- The application will analyze the image and generate a caption and a detailed story.
- View the generated caption and story below the image.
Contributions are welcome! Feel free to open issues or submit pull requests to improve the application.
This project is licensed under the MIT License.