/openai-dalle-playground

A playground for working with the Dall-e API using FastAPI

Primary LanguagePython

openai dall-e playground

A playground to work with the Dall-e API based on FastAPI framework.

Setup

  1. Create a new virtual environment

    $ python -m venv venv
    $ . venv/bin/activate
  2. Install the requirements

    $ pip install -r requirements.txt
  3. Make a copy of the example environment variables file

    $ cp .env.example .env
  4. Add your API key to the newly created .env file

  5. 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 ❤️