Skip to content

silva96/ai_stories

Repository files navigation

AiStories

Generate stories for your kids using Artificial Intelligence

Add main characters (your kids), secondary characters (their friends) and a little excerpt and click Generate. A story with images and multiple pages will be generated.

The software uses OpenAI GPT-3.5-turbo (Dall-E) to generate the stories, summaries, titles and images.

The software's Tech Stack: Ruby on Rails + Hotwire.

Demo

https://storiesgenerator.com

Author

Benjamín Silva
Donate if you liked the project? 🍻

Screenshots

How to create a story:

Screen Shot 2023-01-13 at 02 25 42

What the stories look like:

image

Ruby version

3.2.2

Rails version

7.0.4

System dependencies

  • Redis (for websockets)
  • Libvips (for ActiveStorage)
  • PostgreSQL

Configuration

  • mv .env-example .env
  • Run bin/rails db:encryption:init and copy each key to the .env file
  • Create an OpenAI API Token at https://beta.openai.com/account/api-keys
  • Create a user and add the OpenAI API Token in the settings (it will be encrypted before stored 🔐 ✅)

Database creation

bin/rails db:create

Database initialization

bin/rails db:schema:load

Dependencies installation

  • bundle install
  • yarn install

How to run the app

How to run the test suite

No tests yet for this toy project yet.


Contributing

Please send Issues and/or PR
Be kind.

License

AiStories is released under the MIT License.

About

AiStories - Generate Storybooks for your kids using Artificial Intelligence

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •