Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -180,7 +180,7 @@ def add_voice_labelv2(json_file, audio_path):
|
|
180 |
|
181 |
speech_probs = []
|
182 |
# Size of the window we compute the probability on
|
183 |
-
window_size_samples = SAMPLING_RATE/4
|
184 |
for i in range(0, len(wav), window_size_samples):
|
185 |
chunk = torch.from_numpy(wav[i: i+ window_size_samples])
|
186 |
if len(chunk) < window_size_samples:
|
|
|
180 |
|
181 |
speech_probs = []
|
182 |
# Size of the window we compute the probability on
|
183 |
+
window_size_samples = int(SAMPLING_RATE/4)
|
184 |
for i in range(0, len(wav), window_size_samples):
|
185 |
chunk = torch.from_numpy(wav[i: i+ window_size_samples])
|
186 |
if len(chunk) < window_size_samples:
|