Testimony Adekoya commited on
Commit
45edd80
Β·
1 Parent(s): f1c9a67

Just work werey

Browse files
Files changed (1) hide show
  1. pages/1_Live_Detection.py +3 -3
pages/1_Live_Detection.py CHANGED
@@ -57,10 +57,10 @@ def autoplay_audio(audio_bytes: bytes):
57
  # --- WebRTC Video Processor ---
58
  class VideoProcessor(VideoProcessorBase):
59
  # The __init__ method now accepts the queues as arguments
60
- def __init__(self, status_queue: queue.Queue, audio_queue: queue.Queue):
61
  # It uses the queues passed in from session_state, not new ones.
62
- self.status_queue = status_queue
63
- self.audio_queue = audio_queue
64
  self._detector = get_detector(config)
65
  self._alerter = get_alerter(config, secrets["gemini_api_key"])
66
 
 
57
  # --- WebRTC Video Processor ---
58
  class VideoProcessor(VideoProcessorBase):
59
  # The __init__ method now accepts the queues as arguments
60
+ def __init__(self):
61
  # It uses the queues passed in from session_state, not new ones.
62
+ self.status_queue = queue.Queue
63
+ self.audio_queue = queue.Queue
64
  self._detector = get_detector(config)
65
  self._alerter = get_alerter(config, secrets["gemini_api_key"])
66