It's a small model that runs on your machine using a TFLite model. AI/ML models come in many different sizes. Some more conducive for running locally than others. There's more info on the detection pipeline here.
I didn't write this, just found and self hosted it.