Spaces:
Sleeping
Sleeping
Upload infertest.py
Browse files126 unmodified lines127128129130131132133134135136137138333 unmodified lines472473474475476477126 unmodified linesinst = 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)if os.path.exists(output_path):return send_file(output_path, as_attachment=True)else:return jsonify({"error": "File not found."}), 404333 unmodified linesdef combine_vocal_and_inst(vocal_path, inst_path):vocal_volume=1inst_volume=1os.makedirs("output/result", exist_ok=True)126 unmodified lines127128129130131132133134135136137138333 unmodified lines472473474475476477478479126 unmodified linesinst = f"output/{split_model}/{spk_id}_input_audio/no_vocals.wav"output_path = convert_voice(spk_id, vocal_path, voice_transform)output_path1= combine_vocal_and_inst(output_path,inst)print(output_path1)if os.path.exists(output_path1):return send_file(output_path1, as_attachment=True)else:return jsonify({"error": "File not found."}), 404333 unmodified linesdef combine_vocal_and_inst(vocal_path, inst_path):print(vocal_path)print(inst_path)vocal_volume=1inst_volume=1os.makedirs("output/result", exist_ok=True)
infertest.py+6-4