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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -54,7 +54,7 @@ def detect_snoring_sliding_window(y_segment, sr):
54
  """
55
  WINDOW_SIZE = 1.0 # 1 second windows
56
  STEP_SIZE = 0.25 # 0.25 second steps for high resolution
57
- THRESHOLD = 0.92 # Strict threshold as per your provided logic
58
 
59
  samples_window = int(WINDOW_SIZE * sr)
60
  samples_step = int(STEP_SIZE * sr)
 
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
 
59
  samples_window = int(WINDOW_SIZE * sr)
60
  samples_step = int(STEP_SIZE * sr)