Ailyth commited on
Commit
40a0a70
1 Parent(s): 3c7a160

0216-052419

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -694,7 +694,7 @@ with gr.Blocks(theme='remilia/Ghostly') as app:
694
  interactive=True,
695
  info='A suitable splitting method can achieve better generation results',scale=2
696
  )
697
- with gr.Accordion(label="Preview selected tone/预览语气", open=False):
698
  with gr.Row(visible=True):
699
  inp_ref = gr.Audio(label="Reference audio", type="filepath", value=default_voice_wav, scale=3)
700
  prompt_text = gr.Textbox(label="Reference text", value=default_voice_wav_words, scale=3)
@@ -719,9 +719,10 @@ with gr.Blocks(theme='remilia/Ghostly') as app:
719
  </p>''')
720
  with gr.Row():
721
  user_voice = gr.Audio(sources=["microphone", "upload"],type="filepath", label="(3~10s)Upload or Record audio/上传或录制声音",scale=3)
 
722
  user_text= gr.Textbox(label="Text for generation/输入想要生成语音的文字", lines=5,scale=5,
723
  placeholder=plsh)
724
- user_lang = gr.Dropdown(label="Language/生成语言", choices=["中文", "English", "日本語"],scale=1)
725
 
726
  user_button = gr.Button("✨Clone Voice", variant="primary")
727
  user_output = gr.Audio(label="💾Output wave file,Download it by clicking ⬇️")
 
694
  interactive=True,
695
  info='A suitable splitting method can achieve better generation results',scale=2
696
  )
697
+ with gr.Accordion(label="Preview selected tone/预览语气", open=False,visible=False):
698
  with gr.Row(visible=True):
699
  inp_ref = gr.Audio(label="Reference audio", type="filepath", value=default_voice_wav, scale=3)
700
  prompt_text = gr.Textbox(label="Reference text", value=default_voice_wav_words, scale=3)
 
719
  </p>''')
720
  with gr.Row():
721
  user_voice = gr.Audio(sources=["microphone", "upload"],type="filepath", label="(3~10s)Upload or Record audio/上传或录制声音",scale=3)
722
+ user_lang = gr.Dropdown(label="Language/生成语言", choices=["中文", "English", "日本語"],scale=1)
723
  user_text= gr.Textbox(label="Text for generation/输入想要生成语音的文字", lines=5,scale=5,
724
  placeholder=plsh)
725
+
726
 
727
  user_button = gr.Button("✨Clone Voice", variant="primary")
728
  user_output = gr.Audio(label="💾Output wave file,Download it by clicking ⬇️")