code: def _handle_predictions(self):
          
          while self.running:
              chunk = self.stream.read(self.chunk_size)
  
              if self.is_paused:
                  continue
  
              prob = self.engine.get_prediction(chunk)
              self.on_prediction(prob)
              if self.detector.update(prob):
                  self.on_activation()
docs: Continuously check Precise process output