Agon H commited on
Commit
c48af39
1 Parent(s): bf71dde

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -51,7 +51,7 @@ def process_audio(sampling_rate, waveform, target_sr=16000):
51
  waveform = librosa.resample(waveform, orig_sr=sampling_rate, target_sr=target_sr)
52
 
53
  # limit to 30 seconds
54
- waveform = waveform[:target_sr * 60]
55
 
56
  # make PyTorch tensor
57
  waveform = torch.tensor(waveform)
 
51
  waveform = librosa.resample(waveform, orig_sr=sampling_rate, target_sr=target_sr)
52
 
53
  # limit to 30 seconds
54
+ waveform = waveform[:target_sr * 30]
55
 
56
  # make PyTorch tensor
57
  waveform = torch.tensor(waveform)