A python flask app that generates a spooky story using openai's gpt-3
- Rename
.env.exampleto.envand setOPENAI_KEYto your openapi api key. - Run the command
poetry installto install the dependecies. - Run the flask app
- POST:
http://127.0.0.1:5000/botto get the next part of the spooky story as response - POST:
http://127.0.0.1:5000/bot?Body=the endto end the story.
The story is written based on the initial session_prompt text in story.py file. If you need a new starting story text, use a different text there.
Based on this article: Twilio article