kidroca / bedtime-story-generator Goto Github PK
View Code? Open in Web Editor NEWIllustrated stories generator powered by AI
Illustrated stories generator powered by AI
Most of the time the generated stories are short and general
Regardless of instructions like "detailed", "deep", "extensive", "use at least a 1000 words" or "each chapter should have at least 4 paragraphs", the generated output is far away from the prompted requirements in terms of length
We're looking for ways to inspire the generation of longer stories
The initial plan is to have a system message set some ground rules and then a user message inspire a story
The idea is to keep it simple and avoid back and forth message like asking for each chapter individually
A story between 1000-2000 words would be ideal
We've tried providing longer user message with more details, though this oftens drives the story around paraphrasing or repeating the user message with a few more words added around
The user message should serve as inspiration and don't need to be retold back at us
It might make more sense to use Firebase rather than the local file system
Unfortunately this would make the project less portable - right now any one can run it locally
As an initial step the naming convention should be improved a bit because it seems to cause problems when the project is hosted on Netlify
:
in the ISO date prefixIdeally when we're listing story files it would be great to see a title or a few words in the file/dir name
Other information like the date can be moved inside the story.json file, though right now we rely on the date a bit for uniqueness
The story generated by the AI would contain a bunch of items:
Instead of trying to parse these out, we're asking the AI to output the story in a valid JSON format like
{
"title": "story title",
"genre": "story genre",
"chapters": [{
"title": "part title",
"content": "chapters content",
"illustration": "illustration description"
}]
}
But no matter how much we stress that it should be valid JSON, the generated output would sometime have trivial errors, like using different set of quotes, or leave a trailing comma
The SpeechSynthesisUtterance
used to read the story text as audio is not very good for Bulgarian stories
Right now it's setup to read everything in Bulgarian anyway
Tasks
I find myself jumping to ChatGPT to ask for guidance or general information to help me improve a certain story
It would be nice to just open a chat with the context of a given story
Some stories turn out better than others, and we haven't found the best parameters yet
It would help further development and help analysis if we store as much information about what caused a certain AI output (the generated story)
This should include the prompts for image generation
For the time being they can be replace the illustration description, because an image prompt would already contain the original description imagePrompt = originalDescription + static style/flavor
Stories generated in English seem to be the best
The thing is, even if we ask the AI to create a story in English and then translate it to other language it looks like the story was directly created in the final language and it's too bland or even plain weird with language errors, weird symbols, especially if temperature
is higher than 0.7
. Besides we don't really see the original English story that was supposedly translated
Let's create a api/translate
where given a Story
and a language the story is translated to the specified language and saved separately as a translation (e.g. a new file with metadata like language: BG
)
This can be further improved with more parameters like age-range
so the story is transformed to a form more appropriate for the target audience
Sometimes we want to edit a chapter - manually or automated to:
Also we want to be able to re-generate a specific chapter image:
It would be great if there's an edit button, that changes the chapter to edit mode where we have some controls to re-generate the story, edit the content manually or provide instructions on how the AI should try and shape it
Also an edit button to change the title or to generate a new one
Add netlify identity handling and allow API access to authorized users only
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.