Back to Reflex

dalle

packages/reflex-site-shared/src/reflex_site_shared/gallery/templates/dalle.md

0.9.2a2361 B
Original Source

In this example we create a simple app for generating images using OpenAI's API.

Usage

To run this app locally, install Reflex and run:

bash
reflex init --template dalle

Set up your OpenAI API key:

bash
export OPEN_AI_KEY=your-openai-api-key

Install the dependencies and run the app:

bash
pip install -r requirements.txt
reflex run