version 0
Readme

Bedtime Story Maker

image.png

Inspired from a RedwoodJS demo I made last year, this adds generative art powered by Fal to the bedtime story maker.

Start writing a story by picking

  • a style (spooky, colorful, adventurous
  • an animal (penguin, mouse, unicorn, whale ...)
  • a color for the animal
  • and activity (befriends aliens, goes to the doctor, rides a rollercoaster, bakes a cake for friends)

It uses OpenAI to write a children's bedtime story

  • title
  • summary
  • story

for a "fantastical story about a green whale who rides the bus" or the "spooky story about the tomato fox who explores a cave".

Then using the summary, OpenAI geenrates another prompt to describe the instructions to generate a children's story book image.

That's sent to Fal to generate an image.

Stories get saved to bedtime_stories in SQLite for viewing, searching and maybe sharing.

You then get a bedtime story to enjoy!

Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
1
dthyresson avatar

Hi @daniellevine I realized when you forked, I didn't have many of the imported Vals public or accessible - so I made them public and now the val can run with the db data loaded. There may still be an error because it requires a fal access token to generate the images. You need to set that up with a FAL_KEY after signing up with https://fal.ai. BTW I have made more capable story maker using RedwoodJS that we'll publish as well.

daniellevine-bedtimestorymaker.web.val.run
September 3, 2024