Spaces:
Runtime error
Runtime error
Testimony Adekoya
commited on
Commit
Β·
45edd80
1
Parent(s):
f1c9a67
Just work werey
Browse files
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
|
61 |
# It uses the queues passed in from session_state, not new ones.
|
62 |
-
self.status_queue =
|
63 |
-
self.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 |
|