This project is a simple web application that uses the Gemini API to generate personalized short stories based on user-provided prompts. Users can specify a character, setting, and goal, and the application will create a unique story based on these inputs.
Features
Generates creative short stories based on user input. Simple and intuitive user interface. Demonstrates the power of Gemini's natural language generation capabilities.
Technologies Used
Python Gemini API
Setup and Installation
Clone the repo. Install dependencies- pip install requests python-dotenv Obtain a Gemini API key. Set up environment variables- Create a .env file in the same directory as the Python script. Add your Gemini API key to the .env file: GEMINI_API_KEY=YOUR_ACTUAL_API_KEY Run the application.
Obtain a Gemini API key
Go to Google AI Studio. Sign in with your Google account. Find the Gemini API section. Get your API key.
Usage
Enter a character, setting, and goal in the input fields. Click the "Generate Story" button. The generated story will be displayed on the page
Log in or sign up for Devpost to join the conversation.