/ai_stories

AiStories - Generate Storybooks for your kids using Artificial Intelligence

Primary LanguageRubyMIT LicenseMIT

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 (Davinci-003 and Dall-E) to generate the stories, summaries, titles and images.

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

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

How do stories look like:

image

Ruby version

3.2.0

Rails version

7.0.4

System dependencies

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

Configuration

  • Create a OPENAI_ACCESS_TOKEN in https://beta.openai.com/account/api-keys
  • mv .env-example .env
  • Copy the OPENAI_ACCESS_TOKEN into the .env
  • Be sure to enclose the tolen in double quotes after the equal sign

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.