openai dall-e playground
A playground to work with the Dall-e API based on FastAPI framework.
Setup
-
Create a new virtual environment
$ python -m venv venv $ . venv/bin/activate
-
Install the requirements
$ pip install -r requirements.txt
-
Make a copy of the example environment variables file
$ cp .env.example .env
-
Add your API key to the newly created
.env
file -
Run the app
$ uvicorn main:app --reload
You should now be able to access the app at http://localhost:8000!
Based on OpenAI Flask tutorial but made in FastAPI ❤️