Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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, separator.samplerate)
|
27 |
|
28 |
# Check the number of channels and adjust if necessary
|
29 |
if wav.dim() == 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, samplerate=separator.samplerate)
|
27 |
|
28 |
# Check the number of channels and adjust if necessary
|
29 |
if wav.dim() == 1:
|