Skip to content

Latest commit

 

History

History

09-choose-your-own-adventure

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Choose Your Own Adventure App

A gamebook app with DALL-E, Stable Diffusion, and GPT-4.

Setup

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.

Usage

To run the Flask server:

source .venv/bin/activate
cd 09-choose-your-own-adventure && flask run --debug

Features

  • 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).