whooray commited on
Commit
773fcad
·
verified ·
1 Parent(s): deb2e44

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ import spaces
5
  import librosa
6
 
7
  def resample_audio(audio, target_sample_rate):
8
- current_sample_rate, audio_data = audio
9
  if current_sample_rate != target_sample_rate:
10
  resampled_audio_data = librosa.resample(audio_data, orig_sr=current_sample_rate, target_sr=target_sample_rate)
11
  return target_sample_rate, resampled_audio_data
 
5
  import librosa
6
 
7
  def resample_audio(audio, target_sample_rate):
8
+ audio_data, current_sample_rate = audio
9
  if current_sample_rate != target_sample_rate:
10
  resampled_audio_data = librosa.resample(audio_data, orig_sr=current_sample_rate, target_sr=target_sample_rate)
11
  return target_sample_rate, resampled_audio_data