smajumdar commited on
Commit
1fb0d02
·
1 Parent(s): 98af999

Fix state management

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -19,7 +19,7 @@ def process_audio_file(file):
19
  data, sr = librosa.load(file)
20
 
21
  if sr != SAMPLE_RATE:
22
- data = librosa.resample(data, sr, SAMPLE_RATE)
23
 
24
  # monochannel
25
  data = librosa.to_mono(data)
 
19
  data, sr = librosa.load(file)
20
 
21
  if sr != SAMPLE_RATE:
22
+ data = librosa.resample(data, orig_sr=sr, target_sr=SAMPLE_RATE)
23
 
24
  # monochannel
25
  data = librosa.to_mono(data)