smjain commited on
Commit
fe273ac
1 Parent(s): 6378aa9

Upload infertest.py

Browse files
Files changed (1) hide show
  1. infertest.py +2 -7
infertest.py CHANGED
@@ -500,14 +500,9 @@ def combine_vocal_and_inst(vocal_path, inst_path):
500
  combined = vocal.overlay(instrumental)
501
 
502
  # Export the result
503
- combined.export("output/result/combine.mp3", format="mp3")
504
- ]
505
  #result = subprocess.run(command.split(), stdout=subprocess.PIPE, stderr=subprocess.PIPE)
506
- result = subprocess.run(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
507
- if result.stderr:
508
- print("Error:", result.stderr.decode())
509
- else:
510
- print("Success:", result.stdout.decode())
511
  return output_path
512
 
513
  #def combine_vocal_and_inst(audio_data, vocal_volume, inst_volume):
 
500
  combined = vocal.overlay(instrumental)
501
 
502
  # Export the result
503
+ combined.export(output_path, format="mp3")
504
+
505
  #result = subprocess.run(command.split(), stdout=subprocess.PIPE, stderr=subprocess.PIPE)
 
 
 
 
 
506
  return output_path
507
 
508
  #def combine_vocal_and_inst(audio_data, vocal_volume, inst_volume):