smjain commited on
Commit
9e8f99e
1 Parent(s): ee81677

Upload infertest.py

Browse files
Files changed (1) hide show
  1. infertest.py +3 -1
infertest.py CHANGED
@@ -452,14 +452,16 @@ def cut_vocal_and_inst_yt(split_model):
452
  yield "\n".join(logs), vocal, inst, vocal
453
 
454
  def cut_vocal_and_inst(audio_path):
455
- logs = []
456
  vocal_path = "output/result/audio.wav"
457
  os.makedirs("output/result", exist_ok=True)
458
  #wavfile.write(vocal_path, audio_data[0], audio_data[1])
459
  #logs.append("Starting the audio splitting process...")
460
  #yield "\n".join(logs), None, None
 
461
  command = f"demucs --two-stems=vocals -n {split_model} {audio_path} -o output"
462
  result = subprocess.Popen(command.split(), stdout=subprocess.PIPE, text=True)
 
463
  #for line in result.stdout:
464
  # logs.append(line)
465
  # yield "\n".join(logs), None, None
 
452
  yield "\n".join(logs), vocal, inst, vocal
453
 
454
  def cut_vocal_and_inst(audio_path):
455
+
456
  vocal_path = "output/result/audio.wav"
457
  os.makedirs("output/result", exist_ok=True)
458
  #wavfile.write(vocal_path, audio_data[0], audio_data[1])
459
  #logs.append("Starting the audio splitting process...")
460
  #yield "\n".join(logs), None, None
461
+ print("before executing splitter")
462
  command = f"demucs --two-stems=vocals -n {split_model} {audio_path} -o output"
463
  result = subprocess.Popen(command.split(), stdout=subprocess.PIPE, text=True)
464
+ print("after executing splitter")
465
  #for line in result.stdout:
466
  # logs.append(line)
467
  # yield "\n".join(logs), None, None