Fix a couple bugs (#8045)

This commit is contained in:
Nicolas Mowen
2023-10-07 08:18:34 -06:00
committed by GitHub
parent fe9fcf3eaa
commit 8bde914939
2 changed files with 2 additions and 2 deletions

View File

@@ -163,7 +163,7 @@ class AudioEventMaintainer(threading.Thread):
self.recordings_info_queue = recordings_info_queue
self.feature_metrics = feature_metrics
self.inter_process_communicator = inter_process_communicator
self.detections: dict[dict[str, any]] = feature_metrics
self.detections: dict[dict[str, any]] = {}
self.stop_event = stop_event
self.detector = AudioTfl(stop_event, self.config.audio.num_threads)
self.shape = (int(round(AUDIO_DURATION * AUDIO_SAMPLE_RATE)),)