Spaces:
Runtime error
Runtime error
Commit
·
5ba798f
1
Parent(s):
63e4fee
Update app_multi.py
Browse files- app_multi.py +11 -11
app_multi.py
CHANGED
@@ -717,7 +717,7 @@ with app:
|
|
717 |
|
718 |
with gr.Column():
|
719 |
# Model select
|
720 |
-
|
721 |
[
|
722 |
'%s - %s' % (
|
723 |
m['metadata'].get('source', 'Unknown'),
|
@@ -750,16 +750,6 @@ with app:
|
|
750 |
api_name='audio_conversion'
|
751 |
)
|
752 |
|
753 |
-
tts_convert_btn.click(
|
754 |
-
edge_tts_vc_func,
|
755 |
-
[
|
756 |
-
tts_input, model_index1, tts_speaker, pitch_adjust2, f0_method2,
|
757 |
-
feat_ratio2, filter_radius2, rms_mix_rate2, resample_rate2
|
758 |
-
],
|
759 |
-
[output_audio2, output_msg2],
|
760 |
-
api_name='tts_conversion'
|
761 |
-
)
|
762 |
-
|
763 |
full_song.click(fn=mix, inputs=[output_audio, as_audio_no_vocals], outputs=[new_song])
|
764 |
|
765 |
model_index.change(
|
@@ -866,6 +856,16 @@ with app:
|
|
866 |
|
867 |
output_audio2 = gr.Audio(label='AI歌手(无伴奏)', type="filepath")
|
868 |
output_msg2 = gr.Textbox(label='Output message')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
869 |
|
870 |
with gr.Tab("📺 - 音乐视频"):
|
871 |
with gr.Row():
|
|
|
717 |
|
718 |
with gr.Column():
|
719 |
# Model select
|
720 |
+
model_index = gr.Dropdown(
|
721 |
[
|
722 |
'%s - %s' % (
|
723 |
m['metadata'].get('source', 'Unknown'),
|
|
|
750 |
api_name='audio_conversion'
|
751 |
)
|
752 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
753 |
full_song.click(fn=mix, inputs=[output_audio, as_audio_no_vocals], outputs=[new_song])
|
754 |
|
755 |
model_index.change(
|
|
|
856 |
|
857 |
output_audio2 = gr.Audio(label='AI歌手(无伴奏)', type="filepath")
|
858 |
output_msg2 = gr.Textbox(label='Output message')
|
859 |
+
|
860 |
+
tts_convert_btn.click(
|
861 |
+
edge_tts_vc_func,
|
862 |
+
[
|
863 |
+
tts_input, model_index2, tts_speaker, pitch_adjust2, f0_method2,
|
864 |
+
feat_ratio2, filter_radius2, rms_mix_rate2, resample_rate2
|
865 |
+
],
|
866 |
+
[output_audio2, output_msg2],
|
867 |
+
api_name='tts_conversion'
|
868 |
+
)
|
869 |
|
870 |
with gr.Tab("📺 - 音乐视频"):
|
871 |
with gr.Row():
|