Spaces:
Runtime error
Runtime error
kevinwang676
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -455,7 +455,7 @@ def rvc_infer_music_gpu(zip_path, song_name, song_id, split_model, f0_up_key, vo
|
|
455 |
sf.write(song_name.strip()+zip_path+"AI翻唱.wav", song_infer, tgt_sr)
|
456 |
output_full_song = combine_vocal_and_inst(zip_path, song_name.strip(), song_id, split_model, song_name.strip()+zip_path+"AI翻唱.wav", vocal_volume, inst_volume)
|
457 |
os.remove(song_name.strip()+zip_path+"AI翻唱.wav")
|
458 |
-
return output_full_song
|
459 |
|
460 |
def rvc_infer_music(url, model_name, song_name, split_model, f0_up_key, vocal_volume, inst_volume):
|
461 |
url = url.strip().replace(" ", "")
|
@@ -479,7 +479,7 @@ def rvc_infer_music(url, model_name, song_name, split_model, f0_up_key, vocal_vo
|
|
479 |
print("2.开始下载AI翻唱歌曲...")
|
480 |
with open(song_id.strip() + ".wav", mode="wb") as f:
|
481 |
f.write(audio_content)
|
482 |
-
output_full_song
|
483 |
return output_full_song, singers
|
484 |
|
485 |
app = gr.Blocks(theme="JohnSmith9982/small_and_pretty")
|
|
|
455 |
sf.write(song_name.strip()+zip_path+"AI翻唱.wav", song_infer, tgt_sr)
|
456 |
output_full_song = combine_vocal_and_inst(zip_path, song_name.strip(), song_id, split_model, song_name.strip()+zip_path+"AI翻唱.wav", vocal_volume, inst_volume)
|
457 |
os.remove(song_name.strip()+zip_path+"AI翻唱.wav")
|
458 |
+
return output_full_song
|
459 |
|
460 |
def rvc_infer_music(url, model_name, song_name, split_model, f0_up_key, vocal_volume, inst_volume):
|
461 |
url = url.strip().replace(" ", "")
|
|
|
479 |
print("2.开始下载AI翻唱歌曲...")
|
480 |
with open(song_id.strip() + ".wav", mode="wb") as f:
|
481 |
f.write(audio_content)
|
482 |
+
output_full_song = rvc_infer_music_gpu(zip_path, song_name, song_id, split_model, f0_up_key, vocal_volume, inst_volume)
|
483 |
return output_full_song, singers
|
484 |
|
485 |
app = gr.Blocks(theme="JohnSmith9982/small_and_pretty")
|