Update app.py
Browse files
app.py
CHANGED
@@ -125,8 +125,8 @@ def infer(prompt, input_wav_file, clean_audio, hidden_numpy_audio):
|
|
125 |
if clean_audio is True :
|
126 |
# Extract the file name without the extension
|
127 |
new_name = os.path.splitext(os.path.basename(input_wav_file))[0]
|
128 |
-
|
129 |
-
if os.path.exists(
|
130 |
source_path = os.path.join(check_name, f"{new_name}_cleaned.wav")
|
131 |
else:
|
132 |
source_path = split_process(hidden_numpy_audio, "vocals")
|
|
|
125 |
if clean_audio is True :
|
126 |
# Extract the file name without the extension
|
127 |
new_name = os.path.splitext(os.path.basename(input_wav_file))[0]
|
128 |
+
|
129 |
+
if os.path.exists(os.path.join("bark_voices", f"{new_name}_cleaned")):
|
130 |
source_path = os.path.join(check_name, f"{new_name}_cleaned.wav")
|
131 |
else:
|
132 |
source_path = split_process(hidden_numpy_audio, "vocals")
|