If we are using the modelPredictSample tool to create predictions for a given pulse / frame, we will want the UI to update with the annotations generated by that automatically without having to refresh.
modelPredictSample uses setAnnotations from the sampleContext to update these on the frontend (as well as sending them over the API to the backend), and so can likely just monitor this for changes in a useEffect and push new annotations to the UI when necessary
If we are using the
modelPredictSampletool to create predictions for a given pulse / frame, we will want the UI to update with the annotations generated by that automatically without having to refresh.modelPredictSampleusessetAnnotationsfrom thesampleContextto update these on the frontend (as well as sending them over the API to the backend), and so can likely just monitor this for changes in auseEffectand push new annotations to the UI when necessary