This main 1.py uses the pywhatkit library to generate the images, and the PyQt5 library to create a graphical user interface (GUI) that allows the user to input prompts and select styles from a dropdown menu.
The code main 2.py uses a pretrained GPT-3 language model from OpenAI's API and includes additional features such as the ability to select the size of the generated image, add custom text to the image, and save the generated image to a local file: