Thanks to visit codestin.com
Credit goes to github.com

Skip to content

omniah2004/ai_storybook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

# ๐Ÿ“– AI Storybook

AI Storybook is a Streamlit web app that turns a simple idea into a children's book with text and illustrations.

## โœจ What it does
- User enters a theme and number of pages.
- **Ollama** (`llama3.2:3b`) generates short story scenes.
- **Hugging Face** (`black-forest-labs/FLUX.1-schnell`) generates matching illustrations.
- Pages can be viewed in **Spread mode** (two pages side-by-side)

## ๐Ÿ› ๏ธ Built With
- Python
- Streamlit
- Ollama
- Hugging Face Inference API
- Requests
- Pillow

## ๐Ÿš€ How to Run
1. Clone the repo:
   ```bash
   git clone https://github.com/omniah2004/ai_storybook
   cd ai-storybook
2. Set your Hugging Face token:
   setx HUGGINGFACE_TOKEN "hf_xxxxxxxxx"
3. Start Ollama in a separate terminal:
   ollama serve
4. Create and activate a virtual environment:
   python -m venv .venv
   .venv\Scripts\activate
   pip install -r requirements.txt
5. Run the app:
   streamlit run app.py
   

About

AI Storybook: Generate children's stories with illustrations using Ollama + Hugging Face.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages