DALL-E Image Playground is a web-based application that allows users to interact with OpenAI's DALL-E API. Users can create images from text prompts, edit existing images, and generate variations of uploaded images. This project uses Flask as the backend framework to serve the web application.
- Generate Images: Create AI-generated images by providing a text prompt.
- Edit Images: Upload an image and apply modifications using AI.
- Image Variations: Generate multiple variations of an uploaded image.
You can try out the application locally by following the installation instructions below.
- Python 3.8+: Ensure Python is installed on your system. You can download it here.
- Git: Ensure Git is installed on your system. You can download it here.
Clone this repository to your local machine using the following command:
git clone https://github.com/mahiworld/image-playground.git
cd image-playground
It's recommended to create a virtual environment to manage dependencies. Run the following command:
python3 -m venv hi-venv
On macOS/Linux:
source hi-venv/bin/activate
On Windows:
hi-venv\Scripts\activate
Install the required dependencies using the requirements.txt file:
pip install -r requirements.txt
Create a .env file in the root directory of the project, and add your OpenAI API key:
OPENAI_API_KEY=your_openai_api_key_here
To start the Flask development server, run the following command:
flask run
The app will be available at http://127.0.0.1:5000/