My covidsewage bot finally generates useful alt text!
I tried scraping text data out of the Microsoft Power BI dashboard but was defeated by their bizarre DOM structure… so I’m passing the image to the OpenAI GPT-4o API instead and asking it “Return the concentration levels in the sewersheds - single paragraph, no markdown”
Code is here: https://github.com/simonw/covidsewage-bot/blob/98c56cc83a85d4b8c07e90cb0404f1b1cc2f0fd6/.github/workflows/post.yml#L47-L66
https://fedi.simonwillison.net/@covidsewage/113023397159658020
@simon ...the absurdity of having to use a computationally expensive visual-to-text language model to extract data, when PowerBI usually offers an option to download the data visualized in a given graphic right there on the UI. EDIT: which seems to have been disabled here.