owiedotch commited on
Commit
6d40ced
1 Parent(s): f523848

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -23,7 +23,7 @@ def inference(audio_file: str, model_name: str, vocals: bool, drums: bool, bass:
23
  yield None, stream_log(f"Loading audio file: {audio_file}")
24
 
25
  # Load the audio file with the correct samplerate
26
- wav, sr = load_track(audio_file)
27
 
28
  # Check the number of channels and adjust if necessary
29
  if wav.shape[0] == 1:
 
23
  yield None, stream_log(f"Loading audio file: {audio_file}")
24
 
25
  # Load the audio file with the correct samplerate
26
+ wav, sr = load_track(audio_file, 2, separator.samplerate)
27
 
28
  # Check the number of channels and adjust if necessary
29
  if wav.shape[0] == 1: