A simple web application that generates images using OpenAI's DALL-E model.
- Clone this repository
- Install the required dependencies:
pip install -r requirements.txt
- Create a
.envfile in the root directory and add your OpenAI API key:OPENAI_API_KEY=your_api_key_here - Run the application:
python app.py
- Open your browser and navigate to
http://localhost:8080
- Enter a description of the image you want to generate in the text area
- Click the "Generate Image" button
- Wait for the image to be generated
- The generated image will appear below the input area
Make sure you have a valid OpenAI API key with access to the DALL-E model. You can get an API key by signing up at OpenAI's website.