An AI-powered web application that generates unique stories from your images. Upload one or multiple images and get a creative, cohesive story generated based on their content.
- Multi-Image Upload: Upload multiple images to generate a story that incorporates elements from all of them
- Custom Story Settings: Choose genre, length, and voice preferences
- Audio Narration: Listen to your stories with text-to-speech narration
- Responsive Design: Works on desktop and mobile devices
- Visual Highlighting: See which part of the story is being narrated in real-time
- React
- Tailwind CSS
- Axios for API calls
- Framer Motion for animations
- Python
- Flask
- Gemini API for image understanding and story generation
- Text-to-speech services
- Node.js (v14 or later)
- Python (v3.8 or later)
- Gemini API key
-
Clone the repository
git clone https://github.com/yourusername/Story-Generator.git cd Story-Generator/backend -
Create a virtual environment and activate it
python -m venv venv # On Windows venv\Scripts\activate # On macOS/Linux source venv/bin/activate
-
Install dependencies
pip install -r requirements.txt
-
Create a
.envfile in the backend directory with your Gemini API keyGOOGLE_API_KEY=your_api_key_here -
Start the server
python server.py
-
Navigate to the frontend directory
cd ../frontend -
Install dependencies
npm install
-
Start the development server
npm start
-
Open http://localhost:3000 to view it in your browser
The backend can be deployed to platforms like:
- Render
- Heroku
A Procfile and render.yaml are included for easy deployment.
The frontend can be deployed to:
- Vercel
- Netlify
- Open the application in your browser
- Upload one or multiple images by clicking on the upload area
- Select your preferred genre and story length
- Choose the narration voice and speed
- Click "Generate Story"
- View and listen to your generated story
- Share your story or create a new one
MIT
- OpenAI for providing the image understanding and story generation APIs
- The React and Tailwind CSS communities for their excellent documentation and tools
