A python flask app that generates a spooky story using openai's gpt-3
- Rename
.env.example
to.env
and setOPENAI_KEY
to your openapi api key. - Run the command
poetry install
to install the dependecies. - Run the flask app
- POST:
http://127.0.0.1:5000/bot
to get the next part of the spooky story as response - POST:
http://127.0.0.1:5000/bot?Body=the end
to 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