{"id":20417311,"url":"https://github.com/spidy20/dalle_image_generator","last_synced_at":"2025-09-24T05:32:09.789Z","repository":{"id":177771254,"uuid":"660893963","full_name":"Spidy20/DALLE_Image_Generator","owner":"Spidy20","description":"This is OpenAI DALL.E 2 Image Generator Python Web Application. ","archived":false,"fork":false,"pushed_at":"2023-07-01T15:01:55.000Z","size":528,"stargazers_count":6,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-15T06:29:53.591Z","etag":null,"topics":["aws","dalle-2","dalle2","ec2","openai-chatgpt","openai-dall-e","streamlit","streamlit-webapp"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Spidy20.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-01T06:22:08.000Z","updated_at":"2024-03-29T16:54:54.000Z","dependencies_parsed_at":"2023-07-10T18:15:14.651Z","dependency_job_id":null,"html_url":"https://github.com/Spidy20/DALLE_Image_Generator","commit_stats":null,"previous_names":["spidy20/dalle_image_generator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spidy20%2FDALLE_Image_Generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spidy20%2FDALLE_Image_Generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spidy20%2FDALLE_Image_Generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spidy20%2FDALLE_Image_Generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Spidy20","download_url":"https://codeload.github.com/Spidy20/DALLE_Image_Generator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234045723,"owners_count":18770994,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","dalle-2","dalle2","ec2","openai-chatgpt","openai-dall-e","streamlit","streamlit-webapp"],"created_at":"2024-11-15T06:25:51.727Z","updated_at":"2025-09-24T05:32:09.249Z","avatar_url":"https://github.com/Spidy20.png","language":"Python","funding_links":["https://www.buymeacoffee.com/spidy20","https://www.paypal.me/spidy1820"],"categories":[],"sub_categories":[],"readme":"# DALL·E 2 Image Generator Python App\n\n[![forthebadge made-with-python](http://ForTheBadge.com/images/badges/made-with-python.svg)](https://www.python.org/)\n[![Python 3.8](https://img.shields.io/badge/python-3.8-blue.svg)](https://www.python.org/downloads/release/python-360/)\n\n## [Watch the Tutorial for this Project](https://youtu.be/Ihcb3Lg4twI)\n\n![YouTube Thumbnail](https://github.com/Spidy20/DALLE_Image_Generator/blob/master/yt_thumb.jpg)\n\n## Overview\n\nThis project demonstrates the creation of a \"Text to Image\" application using Python, OpenAI, and Streamlit. The following technologies and services are used:\n\n- `Streamlit` as a server and handling front end.\n- OpenAI API key from `OpenAI`.\n- `DALL.E-2` model for text-to-image generation. \n- `AWS EC2` for deployment (24/7 running).\n\n## Steps\n\n1. Create free accounts on [OpenAI](https://platform.openai.com/account/api-keys) and [AWS](https://console.aws.amazon.com/).\n2. Create a Streamlit App.\n3. Create an EC2 instance on AWS.\n4. Git clone this repository on the EC2 instance.\n5. Install the requirements.\n6. Use the `OPENAI_API_KEY` in your code (avoid using static values, use global variables).\n7. Run the script on the EC2 instance.\n\n## Usage\n\nTo use this project:\n\n1. Clone the repository.\n2. Open a terminal in the working directory.\n3. Run the following command to install the required dependencies:\n    ```\n    pip install -r requirements.txt\n    ```\n4. Set the `OPENAI_API_KEY` as a global variable in your environment (replace `-------API KEY--------` with your actual API key):\n    ```\n    export OPENAI_API_KEY=\"-------API KEY--------\"\n    ```\n5. The `App.py` file contains the Streamlit application.\n6. Run the script with the following command:\n    ```\n    nohup python3 streamlit run App.py --server.port 80\n    ```\n7. To stop the running application:\n   - Get the process ID of the running process:\n     ```\n     ps -ef \n     ```\n   - Kill the process using its ID:\n     ```\n     kill [PROCESS_ID]\n     ```\n\nFor a more detailed explanation of this project, refer to the tutorial on the Machine Learning Hub YouTube channel.\n\n## Screenshots\n\n\u003cimg src=\"https://github.com/Spidy20/DALLE_Image_Generator/blob/master/sc1.jpg\" width=\"270\" height=\"500\"\u003e\n\n## Support\n\nIf you find this project helpful, consider supporting me:\n\n- [Buy me a Coffee☕](https://www.buymeacoffee.com/spidy20)\n- [Donate via PayPal](https://www.paypal.me/spidy1820) (It will inspire me to work on more projects)\n\nFeel free to follow me and star⭐ this repository!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspidy20%2Fdalle_image_generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspidy20%2Fdalle_image_generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspidy20%2Fdalle_image_generator/lists"}