Ar4ikov commited on
Commit
b2efac4
1 Parent(s): 142f6ec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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