Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
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]
|