GithubHelp home page GithubHelp logo

brunto / ai_stories Goto Github PK

View Code? Open in Web Editor NEW

This project forked from silva96/ai_stories

0.0 0.0 0.0 308 KB

AiStories - Generate Storybooks for your kids using Artificial Intelligence

License: MIT License

Shell 0.16% JavaScript 2.48% Ruby 40.11% CSS 3.66% HTML 53.59%

ai_stories's Introduction

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

  • 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.

ai_stories's People

Contributors

silva96 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.