trixy194t commited on
Commit
d00d112
·
verified ·
1 Parent(s): 302b5d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -52,7 +52,7 @@ def detect_snoring_sliding_window(y_segment, sr):
52
  Scans a segment using a sliding window for higher precision.
53
  Returns True if a snore is found within the segment.
54
  """
55
- WINDOW_SIZE = 1.0 # 1 second windows
56
  STEP_SIZE = 0.25 # 0.25 second steps for high resolution
57
  THRESHOLD = 0.62 # Strict threshold as per your provided logic
58
 
 
52
  Scans a segment using a sliding window for higher precision.
53
  Returns True if a snore is found within the segment.
54
  """
55
+ WINDOW_SIZE = 3.0 # 1 second windows
56
  STEP_SIZE = 0.25 # 0.25 second steps for high resolution
57
  THRESHOLD = 0.62 # Strict threshold as per your provided logic
58