/story-generator

Story generator application using generative AI

Primary LanguagePythonApache License 2.0Apache-2.0

Story generator with GenAI

Cuentacuentos IA

This Streamlit app uses Google Cloud's Gemini-Pro model to generate interactive children's stories based on user input.

image

How to use:

  • Enter the name of the main character, their pet or sidekick, and their favorite activity.
  • Click the "Generar historia!" button.
  • The app will generate a short story based on your input and read it aloud using text-to-speech.

Features:

  • Uses Google Cloud's Gemini-Pro model to generate creative and engaging stories.
  • Allows users to customize the story by providing their own input.
  • Generates high-quality audio of the story using text-to-speech.
  • Provides an interactive and engaging experience for children.

Requirements:

  • Python 3.8 or higher
  • Streamlit
  • Google Cloud Platform account with the following APIs enabled: Text-to-Speech Speech-to-Text Vertex AI Generative Models

Setup:

  • Create a Google Cloud Platform account and enable the required APIs.
  • Install the required Python packages.
  • Replace "YOUR_PROJECT_ID" with your Google Cloud project ID.
  • Run the app using the following command:
streamlit run cuentos_by_gemini.py

Deployment:

This app can be deployed to Google Cloud or any other platform that supports Streamlit apps.

Screen Captures:

image

image

License:

This app is licensed under the Apache License 2.0.