ageraustine commited on
Commit
ca50401
1 Parent(s): 10b890e

fix sample rate

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -89,7 +89,7 @@ if vocal_file:
89
  mix_vocals = st.checkbox("Mix Vocals")
90
  if mix_vocals and st_state.vocal_audio is not None:
91
  # Load the vocal audio
92
- vocal_audio, _ = librosa.load(vocal_file.read(), sr=sample_rate, mono=False)
93
 
94
  # Adjust the vocal audio length to match the generated audio
95
  vocal_audio = librosa.util.fix_length(vocal_audio, len(st_state.audio))
 
89
  mix_vocals = st.checkbox("Mix Vocals")
90
  if mix_vocals and st_state.vocal_audio is not None:
91
  # Load the vocal audio
92
+ vocal_audio, _ = librosa.load(vocal_file.read(), mono=False)
93
 
94
  # Adjust the vocal audio length to match the generated audio
95
  vocal_audio = librosa.util.fix_length(vocal_audio, len(st_state.audio))