This is a web-based AI Image Generator application that leverages a deep learning model to generate images from textual descriptions.
Before running the application, make sure you have the necessary Python packages installed. You can install the required dependencies using:
pip install -r requirements.txtAdditionally, you will need to create a .env file in the root directory to store environment-specific variables.
app.py: The main application file where the server is initialized.requirements.txt: Lists all the Python dependencies required to run the application.static/: Contains static assets like CSS, images, and JavaScript files.templates/: Contains HTML templates used by the application..env: Environment configuration file (you need to create this).
-
Clone the repository or download the files.
git clone <repository_url> cd ai_image_generator-main
-
Install the required dependencies.
pip install -r requirements.txt
-
Create a
.envfile in the root directory and add the following environment variables:venice=<your_veniceai_apikey> SECRET_KEY=<flask_secretkey> password=<admin_password> -
Run the application.
python app.py
-
Access the application by opening your browser and navigating to:
http://127.0.0.1:5001
Once the application is running, you can interact with the web interface to provide textual descriptions, and the AI model will generate corresponding images.
This project is open-source, and you can use it under the terms of the MIT License.