Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ import subprocess
|
|
14 |
|
15 |
def resample(speech_array, sampling_rate):
|
16 |
resampler = torchaudio.transforms.Resample(sampling_rate)
|
17 |
-
speech = resampler(speech_array).squeeze()
|
18 |
return speech
|
19 |
|
20 |
|
|
|
14 |
|
15 |
def resample(speech_array, sampling_rate):
|
16 |
resampler = torchaudio.transforms.Resample(sampling_rate)
|
17 |
+
speech = resampler(speech_array).squeeze().astype("double")
|
18 |
return speech
|
19 |
|
20 |
|