Code Monkey home page Code Monkey logo

bedtime-bard's Introduction

image Bedtime can be a challenging and frustrating daily experience for children and parents. To address this, we have developed an AI-powered webapp that generates tailored-made stories, that encourage a child through the bedtime transition in a smoothe, engaging and enjoyable way - for everyone!

Utilising artificial intelligence via the OpenAI API, the app will generate a unique story every night; capturing the child's imagination and incorporating their interests to maximise their enjoyment, while prompting children to perform the pre-selected bedtime steps via pop-ups throughout the story. These prompts are tailored to the story, and transform the routine into an exciting adventure, encouraging the child to complete their bedtime task, and ending with them tucked up in bed.

How to Use ๐Ÿ› ๏ธ

Note : before running for the first time, please go into _init_.py and un-comment line 53

Once you have cloned the repo - make sure that you are in the app folder, and then type these commands into the terminal (one at a time) :

python -m venv venv

.\\venv\\Scripts\\activate

or : source venv/bin/activate for Mac / Linux

cd ../

pip install -r requirements.txt

Finally, to run the app :

flask --app app run

or : flask --app app run --debug to run in debug mode

In the terminal, a link will then appear that looks like this :

Running on http://127.0.0.1:5000

Note : at this point please go into _init_.py and re-comment line 53
Click that link, and our apps homepage will open in a new window in your browser!

The UX Design ๐ŸŽจ

Copy of  Bedtime Bard Wireframe Designs  User Story

Languages, Frameworks & Libraries Used ๐Ÿ–ฅ๏ธ

  • Flask
  • Python
  • SQLAlchemy
  • OpenAI
  • HTML and CSS

File Structure ๐Ÿ“‚

  • Static folder : 'static' elements eg. CSS, images etc
  • Templates folder : .html frontend files, routed to in the routes.py file
  • Tests Folder : contains tests initialisation, and unit tests for each page incomplete
  • init.py : the main code file - generates the app
  • forms.py : the forms for creating a new user, selecting story elements, and setting the bedtime routine
  • models.py : database model definitions and methods
  • openai.py : code for the functionality of the stories generated using the OpenAI API
  • routes.py : the routes that map to the html pages above

bedtime-bard's People

Contributors

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