Chat.py
- For interacting with the GPT-4 and chattingDalle3.py
- For generating multiple images in parallel via DALL·E 3TTS.py
- For generating text-to-speech audio files.
- Make sure any required packages are installed. You can use
pip install -r requirements.txt
- Add your OpenAI API key to
key.txt
- Run a script such as
chat.py
orDalle3.py
![image](https://private-user-images.githubusercontent.com/12518330/243120033-a2d5ba52-6377-4dc2-b0bb-60a73681c992.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg4NjM0NjMsIm5iZiI6MTcxODg2MzE2MywicGF0aCI6Ii8xMjUxODMzMC8yNDMxMjAwMzMtYTJkNWJhNTItNjM3Ny00ZGMyLWIwYmItNjBhNzM2ODFjOTkyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjIwVDA1NTkyM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTkzZThlZjA0NDc4ZDlhYzMwNjhjMDczODFjYzUwNzlkNDQ4ZDRlYjg4MmRlZDM3ZWM4NGRkODc2YTkxOGE0NjEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.KaShRbZdrAXctqWmfTrYmTs8KmeVLr8egr6ISKLXL3g)
- Open
Dalle3.py
and edit any settings you want under "User Settings" near the top. Including the prompt and number of images to generate at once. - After all images are generated and returned, a window with the images will be shown
- Automatically saves the images into an output folder, and records the "revised prompts" for each image (the prompt actually used, that was based on the user-provided prompt)