ATMPLS logo
This page simply serves as a window to my hobby exploration of Microsoft Azure's AI/ML services. Here are a few party tricks ... --Nate

News2Pic

Have you ever wondered how the top news headlines would look as a single image? No? No, neither have I, but here's a way to do it (and automate it to run daily).
    Databricks Notebook (Python)
  1. Get news headlines via Bing Search API.
  2. Extract key phrases from headlines via Azure AI Language API. (What's with the puppy? See PupperSpotter below ...)
  3. Generate image via OpenAI Dall-E, using key phrases as the text prompt.
  4. Add meta details to JSON log.
  5. Copy generated image and JSON log to web app folder (of this website). (This page uses jQuery to retrieve the latest image and JSON meta data.)
News2Pic image

Datestamp
Headlines
Key phrases
Error message

PupperSpotter

Have you ever wanted to spot the face of a West Highland Terrier puppy among those visual news headlines? Still no? Westies are cute, so it's worth spotting them.
    Databricks Notebook (Python)
  1. Open News2Pic image and detect objects (look for westie faces) with Custom Vision model via API endpoint.
  2. Extract bounding box coordinates (left, top, width, height) from model detection results.
  3. Draw bounding box on News2Pic image and save image.
  4. Add meta details to JSON log.
  5. Copy annotated image and JSON log to web app folder (of this website). (This page uses jQuery to retrieve the latest image and JSON meta data.)
PupperSpotter image
Bounding box
(fraction of image)
Probability
(box actually bounding a westie face)
Error message