gpt3-generate-story
Using the Generative Pre-trained Transformer 3 (GPT3) to generate stories or articles
how to run
-
Begin by creating a virtual environment and activating it.
-
run pip to install the required packages ie
pip install openai dotenv
-
get an API KEY from open ai (can be got from the beta testing program), add this to a .env file in your project route folder in the form below:
OPENAI_KEY= YOUR-API-KEY
-
run the app.py file using python
-
you can change the context of the story in the app.py to generate different human-like texts