fffiloni commited on
Commit
d99fb2b
1 Parent(s): bc8d473

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- check_name = os.path.join("bark_voices", f"{new_name}_cleaned")
129
- if os.path.exists(check_name):
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")