Compare commits

...

3 Commits

Author SHA1 Message Date
Brayd bd2e2bd9cd
Add requirements for easy setup 2023-01-15 14:45:21 +01:00
Brayd a5ce81f961
Add project description 2023-01-15 14:45:06 +01:00
Brayd 081ce797dc
Add License 2023-01-15 14:44:48 +01:00
3 changed files with 21 additions and 0 deletions

7
LICENSE Normal file
View File

@ -0,0 +1,7 @@
Copyright © 2023 Brayd (https://code.braydmedia.de/brayd)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

12
README.md Normal file
View File

@ -0,0 +1,12 @@
# OpenAI image generator
![License](https://img.shields.io/badge/license-MIT-blue)
This is a small python script that generates 4 images from a prompt you type in. This is made possible by the OpenAI API.
## Setup
Install the requirements
```bash
pip3 install -r requirements.txt
```
Now open the `main.py`and enter your `API_TOKEN`. You can get one for free directly from [OpenAI](https://beta.openai.com/account/api-keys).
You can now use `python3 main.py` to execute the script.
Have fun!

2
requirements.txt Normal file
View File

@ -0,0 +1,2 @@
openai==0.26.1
requests==2.28.1