Virgo-Alpha / Story_generator

Story-generator using generative AI

Home Page:https://story-generator2.streamlit.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Story Generator Streamlit App

This Streamlit app uses the Google Generative AI API to generate stories based on user prompts. Users can input a prompt, generate a story, and clear the response.

Getting Started

To run the app locally, follow these steps:

Prerequisites

Make sure you have Python and pip installed on your system.

pip install streamlit

Installation

Clone the repository:

git clone https://github.com/yourusername/story-generator-app.git

Navigate to the project directory:

cd story-generator-app

Install dependencies:

pip install -r requirements.txt

Running the App

Run the Streamlit app:

streamlit run app.py

The app will be accessible in your web browser at http://localhost:8501.

Usage

Enter a prompt in the provided text input. Click the "Generate Story" button to generate a story based on the prompt. The generated story will be displayed under the prompt. Click the "Clear Response" button to clear the generated story.

Configuration

Make sure to set up your API key for the Google Generative AI API by adding it to the .env file in the project root:

env

GEMINI_API_KEY=your_actual_api_key Replace your_actual_api_key with your real Gemini API key.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

Google Generative AI Streamlit python-dotenv

Feel free to contribute and improve the app!

vbnet

Replace yourusername in the repository URL with your actual GitHub username if you decide to host the code on GitHub. Adjust the content and structure as needed based on your preferences and additional information about the project.

Tutorial at gemini

Learn prompt engineering

About

Story-generator using generative AI

https://story-generator2.streamlit.app/


Languages

Language:Python 100.0%