helloWorld199 commited on
Commit
096f216
1 Parent(s): 3ad2935

Update src/main.py

Browse files
Files changed (1) hide show
  1. src/main.py +7 -7
src/main.py CHANGED
@@ -277,15 +277,15 @@ def vocal_only_pipeline(song_input, voice_model, pitch_change, is_webui=0,index_
277
  orig_song_path, vocals_path = preprocess_vocals_only(song_input, mdx_model_params, song_id, is_webui, input_type, progress)
278
  else:
279
  vocals_path = None
280
- #for file in os.listdir(song_dir):
281
- # vocals_path = os.path.join(song_dir, file)
282
- #return vocals_path
283
 
284
  #if any of the audio files aren't available or keep intermediate files, rerun preprocess
285
- if any(path is None for path in paths):
286
- orig_song_path, vocals_path= preprocess_vocals_only(song_input, mdx_model_params, song_id, is_webui, input_type, progress)
287
- else:
288
- orig_song_path = paths
289
  #orig_song_path, vocals_path = preprocess_vocals_only(song_input, mdx_model_params, song_id, is_webui, input_type, progress)
290
 
291
  pitch_change = pitch_change * 12 + pitch_change_all
 
277
  orig_song_path, vocals_path = preprocess_vocals_only(song_input, mdx_model_params, song_id, is_webui, input_type, progress)
278
  else:
279
  vocals_path = None
280
+ for file in os.listdir(song_dir):
281
+ vocals_path = os.path.join(song_dir, file)
282
+ return vocals_path
283
 
284
  #if any of the audio files aren't available or keep intermediate files, rerun preprocess
285
+ #if any(path is None for path in paths):
286
+ # orig_song_path, vocals_path= preprocess_vocals_only(song_input, mdx_model_params, song_id, is_webui, input_type, progress)
287
+ #else:
288
+ # orig_song_path = paths
289
  #orig_song_path, vocals_path = preprocess_vocals_only(song_input, mdx_model_params, song_id, is_webui, input_type, progress)
290
 
291
  pitch_change = pitch_change * 12 + pitch_change_all