Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zetane/block-gpt-storyteller
A block that writes a moral story about the given prompt.
https://github.com/zetane/block-gpt-storyteller
Last synced: 27 minutes ago
JSON representation
A block that writes a moral story about the given prompt.
- Host: GitHub
- URL: https://github.com/zetane/block-gpt-storyteller
- Owner: zetane
- Created: 2024-05-03T18:40:09.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-05-28T14:22:36.000Z (7 months ago)
- Last Synced: 2024-11-10T14:08:31.750Z (about 2 months ago)
- Language: Python
- Size: 185 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# block-gpt-storyteller
A block that writes a moral story about the given prompt. The story will be divided into 6 panels and returned as a JSON object containing the initial prompt and the generated story.This block can be used in ZetaForge, an open-source platform enabling developers to design, build, and deploy AI pipelines quickly.
Check out ZetaForge on GitHub: https://github.com/zetane/zetaforge.To use this block, provide your OpenAI API key and a short description of a moral you want to teach to a child. This block takes that information and writes a nice story that teaches that moral to children.
Input:
- `api_key`: Your OpenAI API key.
- `story_description`: The description for the moral story you want to generate.Output:
- `story`: A JSON object containing the initial prompt and the generated story, paginated into 6 pages.You can attach this block to a Text Viewer block (available on ZetaForge Block Library) to view the generated story, as shown below:
![Screenshot 2024-05-28 at 10 18 42 AM](https://github.com/zetane/block-gpt-storyteller/assets/97202788/4d0f295f-6970-4dc8-bac9-11d5d1615952)