https://github.com/rishabkumar7/dalle-python-sms
Generate art with DALLE via SMS using Twilio
https://github.com/rishabkumar7/dalle-python-sms
dall-e flask openai python sms twilio
Last synced: 12 months ago
JSON representation
Generate art with DALLE via SMS using Twilio
- Host: GitHub
- URL: https://github.com/rishabkumar7/dalle-python-sms
- Owner: rishabkumar7
- Created: 2023-02-02T17:07:13.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-01T15:14:18.000Z (almost 3 years ago)
- Last Synced: 2025-01-11T18:47:47.077Z (about 1 year ago)
- Topics: dall-e, flask, openai, python, sms, twilio
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Generate images using DALLE via SMS

## Requirements:
- You'll need an OpenAI API Key. You can [get one here](https://platform.openai.com/account/api-keys).
- ngrok
- Pip packages - openai, flask, twilio, python-dotenv
## Set an Environment Variable
Create a `.env` file in your root directory and add the following line:
`OPENAI_API_KEY=YOUR-OPENAI-API-KEY`
## Configure the Flask App
Run the flask app
`python app.py`
Use `ngrok` to make your flask app accessible over the internet.
`ngrok http 5000`
The above command will give you this output:

Use the forwarding URL as Webhook in the Twilio console in your number settings: