A gamebook app with DALL-E, Stable Diffusion, and GPT-4.
You need to create a virtual env and install the packages listed in requirements.txt
. You can then run Jupyter Notebooks in VS Code.
Follow these steps: How to Work with Python Virtual Environments, Jupyter Notebooks and VS Code.
You need to create a .env
file with your OPENAI_API_KEY
.
For Stable Diffusion, you need to add your STABILITY_AI_KEY
. You can find it in your DreamStudio account once it's created.
To run the Flask server:
source .venv/bin/activate
cd 09-choose-your-own-adventure && flask run --debug
- generating text with GPT-4.
- generating images with DALL-E and Stable Diffusion REST API.
Based on Mastering OpenAI Python APIs: Unleash the Power of GPT4 by Colt Steele (2023).