Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -151,7 +151,7 @@ def main():
|
|
151 |
with gr.Row():
|
152 |
tts_text = gr.Textbox(label="请填写您希望声音复刻的文本内容", lines=3, placeholder="想说却还没说的,还很多...")
|
153 |
mode_checkbox_group = gr.Radio(choices=inference_mode_list, label='请选择声音复刻类型', value=inference_mode_list[0])
|
154 |
-
instruction_text = gr.Text(label="📔 操作指南", value=instruct_dict[inference_mode_list[0]], scale=0.5)
|
155 |
sft_dropdown = gr.Dropdown(choices=sft_spk, label='选择预训练音色', value=sft_spk[0], scale=0.25, visible=False)
|
156 |
with gr.Column(scale=0.25):
|
157 |
seed_button = gr.Button(value="\U0001F3B2", visible=True)
|
@@ -160,7 +160,7 @@ def main():
|
|
160 |
with gr.Row():
|
161 |
prompt_text = gr.Textbox(label="请填写参考音频对应的文本内容", lines=3, placeholder="告诉我参考音频说了些什么吧...")
|
162 |
prompt_wav_upload = gr.Audio(sources='upload', type='filepath', label='请从本地上传您喜欢的参考音频,注意采样率不低于16kHz')
|
163 |
-
prompt_wav_record = gr.Audio(sources='microphone', type='filepath', label='通过麦克风录制参考音频,程序会优先使用本地上传的参考音频')
|
164 |
generate_button = gr.Button("一键开启声音复刻💕", variant="primary")
|
165 |
instruct_text = gr.Textbox(label="输入instruct文本", lines=1, placeholder="请输入instruct文本.", value='', visible=False)
|
166 |
|
|
|
151 |
with gr.Row():
|
152 |
tts_text = gr.Textbox(label="请填写您希望声音复刻的文本内容", lines=3, placeholder="想说却还没说的,还很多...")
|
153 |
mode_checkbox_group = gr.Radio(choices=inference_mode_list, label='请选择声音复刻类型', value=inference_mode_list[0])
|
154 |
+
instruction_text = gr.Text(label="📔 操作指南", value=instruct_dict[inference_mode_list[0]], scale=0.5, visible=False)
|
155 |
sft_dropdown = gr.Dropdown(choices=sft_spk, label='选择预训练音色', value=sft_spk[0], scale=0.25, visible=False)
|
156 |
with gr.Column(scale=0.25):
|
157 |
seed_button = gr.Button(value="\U0001F3B2", visible=True)
|
|
|
160 |
with gr.Row():
|
161 |
prompt_text = gr.Textbox(label="请填写参考音频对应的文本内容", lines=3, placeholder="告诉我参考音频说了些什么吧...")
|
162 |
prompt_wav_upload = gr.Audio(sources='upload', type='filepath', label='请从本地上传您喜欢的参考音频,注意采样率不低于16kHz')
|
163 |
+
prompt_wav_record = gr.Audio(sources='microphone', type='filepath', label='通过麦克风录制参考音频,程序会优先使用本地上传的参考音频', visible=False)
|
164 |
generate_button = gr.Button("一键开启声音复刻💕", variant="primary")
|
165 |
instruct_text = gr.Textbox(label="输入instruct文本", lines=1, placeholder="请输入instruct文本.", value='', visible=False)
|
166 |
|