Building a lightweight React app that leverages tfjs to make real time detections using a custom model. The app works fine when looping using setInterval but it\'s a little