A simple web interface to write bedtime stories together with GPT-3 – one step at a time.
The interface allows users to write a story in iterations and in collaboration with the AI. That's how it works:
- Write the beginning of the story. Example: "One uppon a time, an octopus decided that wanted to see the world."
- AI will continue the story with a couple of sentences.
- How can the story go on? Just write the next step of the story.
- AI will continue it further.
And so on.
The app builds on:
- OpenAI API quickstart tutorial
- Next.js framework with React
-
If you don’t have Node.js installed, install it from here
-
Clone this repository
-
Navigate into the project directory
$ cd BedTimeStories-by-GPT-3
-
Install the requirements
$ npm install
-
Make a copy of the example environment variables file
$ cp .env.example .env
-
Add your OpenAI API key to the newly created
.env
file -
Run the app
$ npm run dev
You should now be able to access the app at http://localhost:3000