Spaces:
Sleeping
Sleeping
Upload infertest.py
Browse files126 unmodified lines127128129130131130131132133134135134135136137138333 unmodified lines472473474475476477478479126 unmodified lines inst = f"output/{split_model}/{spk_id}_input_audio/no_vocals.wav" output_path = convert_voice(spk_id, vocal_path, voice_transform) output_path= combine_vocal_and_inst(output_path,inst) print(output_path) output_path1= combine_vocal_and_inst(output_path,inst) print(output_path1) if os.path.exists(output_path): return send_file(output_path, as_attachment=True) if os.path.exists(output_path1): return send_file(output_path1, as_attachment=True) else: return jsonify({"error": "File not found."}), 404 333 unmodified lines
def combine_vocal_and_inst(vocal_path, inst_path): print(vocal_path) print(inst_path) vocal_volume=1 inst_volume=1 os.makedirs("output/result", exist_ok=True)infertest.py+6-4