Spaces:
Running
Running
jhj0517
commited on
Commit
·
299923f
1
Parent(s):
c5d0765
Fix file name
Browse files
modules/uvr/music_separator.py
CHANGED
@@ -67,9 +67,9 @@ class MusicSeparator:
|
|
67 |
sample_rate = self.audio_info.sample_rate
|
68 |
|
69 |
filename, ext = os.path.splitext(audio_file_path)
|
70 |
-
filename = os.path.basename(filename)
|
71 |
-
instrumental_output_path = os.path.join(self.output_dir, "instrumental", filename)
|
72 |
-
vocals_output_path = os.path.join(self.output_dir, "vocals", filename)
|
73 |
|
74 |
model_config = {
|
75 |
"segment": segment_size,
|
|
|
67 |
sample_rate = self.audio_info.sample_rate
|
68 |
|
69 |
filename, ext = os.path.splitext(audio_file_path)
|
70 |
+
filename, ext = os.path.basename(filename), ".wav"
|
71 |
+
instrumental_output_path = os.path.join(self.output_dir, "instrumental", f"{filename}-instrumental{ext}")
|
72 |
+
vocals_output_path = os.path.join(self.output_dir, "vocals", f"{filename}-vocals{ext}")
|
73 |
|
74 |
model_config = {
|
75 |
"segment": segment_size,
|