Spaces:
Sleeping
Sleeping
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,19 +1,66 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# CuentAI: AI-Powered Story Generator
|
| 2 |
+
|
| 3 |
+
CuentAI is an interactive web application that uses artificial intelligence to create personalized children's stories with automatically generated illustrations.
|
| 4 |
+
|
| 5 |
+
## Features
|
| 6 |
+
|
| 7 |
+
- **Story Generation**: Creates unique children's stories using OpenAI GPT-4
|
| 8 |
+
- **Illustration Generation**: Generates custom illustrations for each scene using DALL-E 3 or Stable Diffusion
|
| 9 |
+
- **Interactive UI**: User-friendly interface built with Streamlit
|
| 10 |
+
- **Customization**: Personalize the protagonist name and story theme
|
| 11 |
+
- **Multi-scene Stories**: View your story across multiple illustrated scenes
|
| 12 |
+
- **Optional Audio Narration**: Text-to-speech capabilities (requires Google Cloud setup)
|
| 13 |
+
|
| 14 |
+
## How It Works
|
| 15 |
+
|
| 16 |
+
1. Enter the protagonist's name
|
| 17 |
+
2. Choose a theme for the story
|
| 18 |
+
3. Click "Generate Story"
|
| 19 |
+
4. Enjoy your personalized story with AI-generated illustrations
|
| 20 |
+
|
| 21 |
+
## Technical Details
|
| 22 |
+
|
| 23 |
+
- **Backend**: Python with OpenAI API and Replicate API
|
| 24 |
+
- **Frontend**: Streamlit
|
| 25 |
+
- **Image Generation**: DALL-E 3 (OpenAI) and Stable Diffusion (Replicate)
|
| 26 |
+
- **Optional TTS**: Google Cloud Text-to-Speech
|
| 27 |
+
|
| 28 |
+
## Installation
|
| 29 |
+
|
| 30 |
+
```bash
|
| 31 |
+
# Clone the repository
|
| 32 |
+
git clone https://github.com/yourusername/CuentAI.git
|
| 33 |
+
cd CuentAI
|
| 34 |
+
|
| 35 |
+
# Create a virtual environment
|
| 36 |
+
python -m venv venv
|
| 37 |
+
source venv/bin/activate # On Windows: venv\Scripts\activate
|
| 38 |
+
|
| 39 |
+
# Install dependencies
|
| 40 |
+
pip install -r requirements.txt
|
| 41 |
+
|
| 42 |
+
# Configure environment variables
|
| 43 |
+
# Create a .env file with your API keys:
|
| 44 |
+
# OPENAI_API_KEY=your_openai_api_key
|
| 45 |
+
# REPLICATE_API_TOKEN=your_replicate_api_token
|
| 46 |
+
```
|
| 47 |
+
|
| 48 |
+
## Usage
|
| 49 |
+
|
| 50 |
+
```bash
|
| 51 |
+
streamlit run app.py
|
| 52 |
+
```
|
| 53 |
+
|
| 54 |
+
## Requirements
|
| 55 |
+
|
| 56 |
+
See `requirements.txt` for a complete list of dependencies.
|
| 57 |
+
|
| 58 |
+
## License
|
| 59 |
+
|
| 60 |
+
MIT License
|
| 61 |
+
|
| 62 |
+
## Acknowledgements
|
| 63 |
+
|
| 64 |
+
- OpenAI for GPT-4 and DALL-E 3
|
| 65 |
+
- Replicate for Stable Diffusion access
|
| 66 |
+
- Streamlit for the web interface framework
|