Merge pull request #7 from joelmathewthomas/refactor/code-cleanup

Code refactoring
This commit is contained in:
Joel Mathew Thomas
2024-12-28 00:37:30 +05:30
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import soundfile as sf
import tempfile
from pathlib import Path
def separate_audio_with_demucs(input_file, sample_rate, output_dir: str):
def separate_audio_with_demucs(input_file, output_dir: str):
"""
Use subprocess to run Demucs separation on an input audio file.
Parameters:
+1 -1
View File
@@ -36,7 +36,7 @@ def test_demucs_separation_with_preprocessing():
new_audio_path = os.path.join(dir_path, f"{file_name}.wav")
os.rename(temp_audio_path, new_audio_path)
separate_audio_with_demucs(new_audio_path, samplerate, output_path)
separate_audio_with_demucs(new_audio_path, output_path)
# Verify the htdemucs folder exists
demucs_dir = Path(output_path) / 'htdemucs'