Datestamp | |
Name | |
Summary | |
Error message | |
My son enjoys learning about historical (usually ancient) rulers and military leaders. To brighten his day, a different historical POI (person of interest) profile is sent to him by SMS message each morning.
Azure Resources
- (Same key vault, Databricks service and cluster, storage account, OpenAI service, and SMS service as PandaPicturePusher.)
- Databricks notebook created and attached to cluster.
- Data Factory, a pipeline with a single activity linked to the Databricks notebook and set to trigger daily.
Databricks Notebook (Python)
- Generate text prompt via OpenAI GPT-4o model (random.choice() used to randomize panda vocations).
- Generate image via OpenAI Dall-E, using the text prompt.
- Update image paths in this page's HTML, pointing to newly generated image.
- Copy generated image and updated HTML to web app folder (of this website).
- Send this page's URL via SMS (Open Graph meta tags help preview image within SMS message [to do: use MMS instead]).