This repository contains code for a Text to Image Generator using OpenAI's Dall-E and Gradio.
- Clone the repository:
git clone https://github.com/arham-kk/text-to-image.git
Install the required dependencies:
pip install openai gradio Pillow
Set your OpenAI API key in the generate_image function inside the main.py file:
openai.api_key = 'ENTER OPENAI KEY'
Run the application:
python app.py
Access the Text to Image Generator through your browser:
http://localhost:7860/
This project is licensed under the MIT License. See the LICENSE file for details.