Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -22,8 +22,8 @@ def inference(audio_file: str, model_name: str, vocals: bool, drums: bool, bass:
|
|
22 |
yield None, stream_log("Starting separation process...")
|
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, samplerate=separator.samplerate)
|
27 |
|
28 |
# Check the number of channels and adjust if necessary
|
29 |
if wav.dim() == 1:
|
|
|
22 |
yield None, stream_log("Starting separation process...")
|
23 |
yield None, stream_log(f"Loading audio file: {audio_file}")
|
24 |
|
25 |
+
# Load the audio file with the correct samplerate and audio channels
|
26 |
+
wav, sr = load_track(audio_file, samplerate=separator.samplerate, audio_channels=2)
|
27 |
|
28 |
# Check the number of channels and adjust if necessary
|
29 |
if wav.dim() == 1:
|