-
Notifications
You must be signed in to change notification settings - Fork 0
omniah2004/ai_storybook
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
ย | ย | |||
ย | ย | |||
ย | ย | |||
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 0
No packages published