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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -123,10 +123,12 @@ def update_selection(selected_state: gr.SelectData):
123
  def infer(prompt, input_wav_file, clean_audio, hidden_numpy_audio):
124
 
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")
 
123
  def infer(prompt, input_wav_file, clean_audio, hidden_numpy_audio):
124
 
125
  if clean_audio is True :
126
+ print("We want to clean audio sample")
127
  # Extract the file name without the extension
128
  new_name = os.path.splitext(os.path.basename(input_wav_file))[0]
129
+ print(f"FILE BASENAME is: {new_name}")
130
  if os.path.exists(os.path.join("bark_voices", f"{new_name}_cleaned")):
131
+ check_name = os.path.join("bark_voices", f"{new_name}_cleaned")
132
  source_path = os.path.join(check_name, f"{new_name}_cleaned.wav")
133
  else:
134
  source_path = split_process(hidden_numpy_audio, "vocals")