How sanjnashenoy05-glitch/story-generator-ai works
This is a small Gradio story-generation app. A user enters a prompt, selects a genre and word limit, and submits them through the interface. The generation function builds an instruction and invokes a Transformers text-generation pipeline; its result is truncated to the last complete sentence and returned for display. The only source file is app.py, so the graph reflects its visible runtime flow; it shows no persistent storage or separate external service integration.
Main entry points: app.py Story generation
Components 5
User interface
- Gradio interface
app.py
Story generation
- Story generation
app.py - Transformers pipeline
app.py - Sentence truncation
app.py
Other components
- User
Connections 5
- User → Gradio interface: submits prompt
app.py - Gradio interface → Story generation: calls
app.py - Story generation → Transformers pipeline: generates text
app.py - Story generation → Sentence truncation: truncates result
app.py - Story generation → Gradio interface: returns story
app.py