Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ detector = get_detector(CFG)
|
|
38 |
# It handles its own state (last alert time) internally.
|
39 |
class AlertManager:
|
40 |
def __init__(self, config):
|
41 |
-
self.cooldown_seconds = config.get("alert_cooldown_seconds",
|
42 |
self.last_alert_time = 0
|
43 |
self.alert_data = None
|
44 |
self.sample_rate = None
|
|
|
38 |
# It handles its own state (last alert time) internally.
|
39 |
class AlertManager:
|
40 |
def __init__(self, config):
|
41 |
+
self.cooldown_seconds = config.get("alert_cooldown_seconds", 1)
|
42 |
self.last_alert_time = 0
|
43 |
self.alert_data = None
|
44 |
self.sample_rate = None
|