Ailyth commited on
Commit
6d23aca
1 Parent(s): 6bcd463

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -15,11 +15,11 @@ import pytz
15
 
16
  net_g = None
17
  models = {
18
- "DLM": "./MODELS/DLM.pth",
19
- "LightHammer": "./MODELS/hammer.pth",
20
- "ArasakaAI": "./MODELS/Arasaka.pth",
21
- "BadDLMGirl": "./MODELS/BG1300.pth",
22
- "BadDLMBoy": "./MODELS/BAD1100.pth",
23
  "Silverleg": "./MODELS/J8900.pth",
24
  "Rokuro": "./MODELS/take2.pth",
25
  }
@@ -119,9 +119,9 @@ if __name__ == "__main__":
119
  Gradio Theme:remilia/Ghostly""")
120
  text = gr.TextArea(label="✨输入需要生成语音的文字", placeholder="输入文字",
121
  value="您好,欢迎使用德拉曼网络服务,要不要来一起打游戏",
122
- info="使用huggingface的免费CPU进行推理,因此速度不快,最多生成500字,多余的会被忽略。字数越多越耗时,请耐心等待,只会说中文",
123
  )
124
- model = gr.Radio(choices=list(models.keys()), value=list(models.keys())[0], label='📢音声模型')
125
  with gr.Accordion(label="💡展开设置生成参数", open=False):
126
  sdp_ratio = gr.Slider(minimum=0, maximum=1, value=0.2, step=0.01, label='SDP/DP混合比',info='可控制一定程度的语调变化')
127
  noise_scale = gr.Slider(minimum=0.1, maximum=1.5, value=0.5, step=0.01, label='感情变化')
 
15
 
16
  net_g = None
17
  models = {
18
+ "DLM 德拉曼": "./MODELS/DLM.pth",
19
+ "HeavyHammer 重锤": "./MODELS/hammer.pth",
20
+ "ArasakaAI 荒坂AI": "./MODELS/Arasaka.pth",
21
+ "BadDLMGirl 德拉曼女儿": "./MODELS/BG1300.pth",
22
+ "BadDLMBoy 德拉曼儿子": "./MODELS/BAD1100.pth",
23
  "Silverleg": "./MODELS/J8900.pth",
24
  "Rokuro": "./MODELS/take2.pth",
25
  }
 
119
  Gradio Theme:remilia/Ghostly""")
120
  text = gr.TextArea(label="✨输入需要生成语音的文字", placeholder="输入文字",
121
  value="您好,欢迎使用德拉曼网络服务,要不要来一起打游戏",
122
+ info="使用huggingface的免费CPU进行推理,因此速度不快,单次最多生成500字,多余的会被忽略。字数越多越耗时,请耐心等待,只会说中文。",
123
  )
124
+ model = gr.Radio(choices=list(models.keys()), value=list(models.keys())[0], label='📢音声模型(不同模型声音完全不同,比如“滴滴,你个王八蛋“,建议使用BadDLMboy)')
125
  with gr.Accordion(label="💡展开设置生成参数", open=False):
126
  sdp_ratio = gr.Slider(minimum=0, maximum=1, value=0.2, step=0.01, label='SDP/DP混合比',info='可控制一定程度的语调变化')
127
  noise_scale = gr.Slider(minimum=0.1, maximum=1.5, value=0.5, step=0.01, label='感情变化')