The Gemini Story App is a web application that combines the power of generative AI with user-provided image to create inspiring and imaginative stories. Built using Flask, Python, and various web technologies, this app allows users to upload an image and receive an inspiring story generated by the Gemini AI.
- Image-to-Story Generation:
- Users upload their own image in supported formats (e.g., JPEG, PNG) directly through the web interface.
- The app uses the Gemini API (Gemini Pro Vision AI model) to analyze the visual content of the image.
- Based on the image analysis, it dynamically generates a short story.
- Integration with Gemini AI:
- The Gemini Pro Vision AI model provides insights into the image.
- The app combines this information with creative storytelling to produce unique narratives.
- User Experience:
- A clean and intuitive user interface allows seamless interaction.
- Users receive instant feedback with their story from the image they choose.
- Flask
- Python
- HTML/CSS/JavaScript
- Bootstrap
- Google AI Studio
- Gemini API
- Clone this repository to your local machine.
- Install the required dependencies using pip install -r requirements.txt.
To use the Gemini API, follow these steps:
- Obtain an API key from the Google AI Studio.
- Create a
.env
file in the project root folder. - Inside the
.env
file, define an environment variable namedGEMINI_API_KEY
and assign your obtained API key to it.
- Naviagte to the
src
folder. - Run the Flask app using
flask run
. - Open your web browser and navigate to
http://127.0.0.1:5000
.