A Streamlit app that takes an uploaded image and produces a voice-narrated short story using a three-stage GenAI pipeline.

Salesforce/blip-image-captioning-base (HuggingFace transformers, runs locally on CPU) produces a scene description from the uploaded JPG.google/flan-t5-large (HuggingFace transformers, runs locally on CPU) generates a ~50-word short story conditioned on the caption and a user-selected genre.espnet/kan-bayashi_ljspeech_vits (HuggingFace Inference API) converts the story to FLAC audio, played back in the browser.1. Clone and install dependencies
pip install -r requirements.txt
2. Create a .env file in the project root
HUGGINGFACE_API_TOKEN=<your-huggingface-token>
3. Run the app
streamlit run app.py
streamlit
transformers
torch
sentencepiece
accelerate
Pillow
python-dotenv
requests
Distributed under the MIT License. See LICENSE for more information.
17 commits
5 commits
Python
100.0%
A Streamlit app that takes an uploaded image and produces a voice-narrated short story using a three-stage GenAI pipeline.

Salesforce/blip-image-captioning-base (HuggingFace transformers, runs locally on CPU) produces a scene description from the uploaded JPG.google/flan-t5-large (HuggingFace transformers, runs locally on CPU) generates a ~50-word short story conditioned on the caption and a user-selected genre.espnet/kan-bayashi_ljspeech_vits (HuggingFace Inference API) converts the story to FLAC audio, played back in the browser.1. Clone and install dependencies
pip install -r requirements.txt
2. Create a .env file in the project root
HUGGINGFACE_API_TOKEN=<your-huggingface-token>
3. Run the app
streamlit run app.py
streamlit
transformers
torch
sentencepiece
accelerate
Pillow
python-dotenv
requests
Distributed under the MIT License. See LICENSE for more information.
17 commits
5 commits
Python
100.0%