Awell00 commited on
Commit
8855306
·
1 Parent(s): 507e460

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -60,8 +60,8 @@ def record(audio):
60
 
61
  def butter_bandpass(sr, order=5):
62
  nyquist = 0.5 * sr
63
- low = low_frequency / nyquist
64
- high = high_frequency / nyquist
65
  coef = butter(order, [low, high], btype='band')
66
  b = coef[0]
67
  a = coef[1]
 
60
 
61
  def butter_bandpass(sr, order=5):
62
  nyquist = 0.5 * sr
63
+ low = (low_frequency-500) / nyquist
64
+ high = (high_frequency+500) / nyquist
65
  coef = butter(order, [low, high], btype='band')
66
  b = coef[0]
67
  a = coef[1]