AI Food Police

Towards Data Science
118 views •

Tracking fried food from meal photos with the language model built into macOS By Irfan Alghani Khalid Project page: https://towardsdatascience.com/ai-food-police/ ShipAI is a Towards Data Science project. Watch all the videos here: https://towardsdatascience.com/videos/ Key takeaways. 1. A meal photo goes to Apple's on-device Foundation Model through the fm command and comes back as JSON. 2. Each meal is flagged for fried food or santan, logged to a Google Sheet and charted by week. 3. The first, loose prompt let the model invent plausible answers, so he kept tightening it until the JSON held. Chapters: 0:00 Food Police on Apple's model 0:50 Analyzing a plate of nasi goreng 2:42 The weekly analytics 3:39 The Streamlit and FastAPI code 7:03 Why not Gemini 8:13 Prompting with an image 10:17 Google Sheets as the database

Keyboard shortcuts

On. Switch them off if they collide with your assistive tools; ? still opens this sheet.

Go to

Press g then the letter.

  • gh Latest
  • gs Sources
  • gm Media
  • gv Videos
  • gp Podcasts
  • gc Calendar
  • gd Decoder
  • gz Dataviz
  • ga Datasets
  • gb Blog
  • gk Markets
  • gj Careers
  • gn Prompt Notebook

On this page

  • / Focus search, where there is one
  • t Back to top
  • ? This list
  • Esc Close