How abdul-stack871/narratovission-ai works
NarratoVision is a Streamlit app that turns a user’s story into a summarized, emotion-labeled image prompt, generates an image, and offers it for display and download. The main runtime is concentrated in app.py: it handles the interface and orchestration, calls OpenRouter for story analysis, then calls Hugging Face for image generation. README documents the overall workflow and capabilities; the sampled app.py excerpts show the analysis and generation calls, but omit some interface code.
Main entry points: app.py Story analysis
Components 13
Story interface
- Story interface
app.py - Workflow handler
app.py
Story processing
- Story analysis
app.py - Story summary
app.py - Emotion result
app.py - Image prompt
app.py - OpenRouter API
Image output
- Image generation
app.py - Hugging Face API
- Generated image
app.py - Image display
app.py - Image download
app.py
Other components
- Storyteller
Connections 14
- Storyteller → Story interface: enters story
README.md - Story interface → Workflow handler: submits story
README.md - Workflow handler → Story analysis: analyzes story
README.md - Story analysis → OpenRouter API: requests analysis
app.py - OpenRouter API → Story analysis: returns analysis
app.py - Story analysis → Story summary: extracts summary
README.md - Story analysis → Emotion result: detects emotion
README.md - Story analysis → Image prompt: creates prompt
README.md - Workflow handler → Image generation: requests image
app.py - Image generation → Hugging Face API: sends prompt
app.py - Hugging Face API → Image generation: returns image
app.py - Image generation → Generated image: produces image
app.py - Workflow handler → Image display: displays image
app.py - Workflow handler → Image download: offers download
app.py