Mahiruoshi commited on
Commit
8d8c89e
1 Parent(s): 4dcbdea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -267,7 +267,7 @@ if __name__ == '__main__':
267
  "# <center>少歌&&虹团vits\n"
268
  "## <center> Please do not generate content that could infringe upon the rights or cause harm to individuals or organizations.\n"
269
  "## <center> 请不要生成会对个人以及企划造成侵害的内容\n"
270
- "## <center>自带chatgpt支持,长句分割支持,srt字幕生成,可修改音频生成路径至live2d语音路径"
271
  "## <center> 数据集版权归官方所有,严禁商用及恶意使用"
272
  )
273
  with gr.Tabs():
@@ -295,15 +295,14 @@ if __name__ == '__main__':
295
  input4 = gr.Slider(minimum=0, maximum=1.0, label="更改噪声比例(noise scale),以控制情感", value=0.467)
296
  input5 = gr.Slider(minimum=0, maximum=1.0, label="更改噪声偏差(noise scale w),以控制音素长短", value=0.7)
297
  input6 = gr.Slider(minimum=0.1, maximum=10, label="duration", value=1)
298
- with gr.Accordion(label="Advanced Setting()", open=False):
299
- audio_input3 = gr.Dropdown(label="重复次数", choices=list(range(101)), value='0', interactive=True)
300
  input3 = gr.Checkbox(value=False, label="长句切割(小说合成)")
301
  output2 = gr.outputs.File(label="字幕文件:subtitles.srt")
302
  api_input1 = gr.Checkbox(value=False, label="接入chatgpt")
303
  api_input2 = gr.TextArea(label="api-key",lines=1,value = '见 https://openai.com/blog/openai-api')
304
  audio_input1 = gr.Checkbox(value=False, label="修改音频路径(live2d)")
305
  audio_input2 = gr.TextArea(label="音频路径",lines=1,value = '#参考 D:/app_develop/live2d_whole/2010002/sounds/temp.wav')
306
-
307
  btnVC.click(tts_fn, inputs=[api_input1,api_input2,audio_input1,audio_input2,audio_input3,input1,input2,input3,input4,input5,input6], outputs=[output1,output2,output_UI])
308
 
309
  app.launch()
 
267
  "# <center>少歌&&虹团vits\n"
268
  "## <center> Please do not generate content that could infringe upon the rights or cause harm to individuals or organizations.\n"
269
  "## <center> 请不要生成会对个人以及企划造成侵害的内容\n"
270
+ "## <center>自带chatgpt支持,长句分割支持,srt字幕生成,可修改音频生成路径至live2d语音路径\n"
271
  "## <center> 数据集版权归官方所有,严禁商用及恶意使用"
272
  )
273
  with gr.Tabs():
 
295
  input4 = gr.Slider(minimum=0, maximum=1.0, label="更改噪声比例(noise scale),以控制情感", value=0.467)
296
  input5 = gr.Slider(minimum=0, maximum=1.0, label="更改噪声偏差(noise scale w),以控制音素长短", value=0.7)
297
  input6 = gr.Slider(minimum=0.1, maximum=10, label="duration", value=1)
298
+ with gr.Accordion(label="Advanced Setting(GPT3.5接口+长句子合成)", open=False):
 
299
  input3 = gr.Checkbox(value=False, label="长句切割(小说合成)")
300
  output2 = gr.outputs.File(label="字幕文件:subtitles.srt")
301
  api_input1 = gr.Checkbox(value=False, label="接入chatgpt")
302
  api_input2 = gr.TextArea(label="api-key",lines=1,value = '见 https://openai.com/blog/openai-api')
303
  audio_input1 = gr.Checkbox(value=False, label="修改音频路径(live2d)")
304
  audio_input2 = gr.TextArea(label="音频路径",lines=1,value = '#参考 D:/app_develop/live2d_whole/2010002/sounds/temp.wav')
305
+ audio_input3 = gr.Dropdown(label="重复生成次数", choices=list(range(101)), value='0', interactive=True)
306
  btnVC.click(tts_fn, inputs=[api_input1,api_input2,audio_input1,audio_input2,audio_input3,input1,input2,input3,input4,input5,input6], outputs=[output1,output2,output_UI])
307
 
308
  app.launch()