Mahiruoshi commited on
Commit
bf56a96
1 Parent(s): b9a1d36

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -18,17 +18,17 @@ class VitsGradio:
18
  def __init__(self):
19
  self.dev = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
20
  self.lan = ["中文","日文","自动","手动"]
21
- self.idols = ["歩夢","かすみ","しずく","果林","愛","せつ菜","璃奈","栞子","エマ","ランジュ","ミア","華恋","まひる","なな","クロディーヌ","ひかり",'純那',"香子","真矢","双葉","ミチル","メイファン","やちよ","晶","いちえ","ゆゆ子","塁","珠緒","あるる","ララフィン","美空","静羽","あるる"]
22
  self.modelPaths = []
23
  for root,dirs,files in os.walk("checkpoints"):
24
  for dir in dirs:
25
  self.modelPaths.append(dir)
26
  with gr.Blocks() as self.Vits:
27
  gr.Markdown(
28
- "## <center> Lovelive虹团中日双语VITS\n"
29
  "### <center> 请不要生成会对个人以及企划造成侵害的内容\n"
30
- "<div align='center'>目前有标贝普通话版,去标贝版,少歌模型还是大饼状态</div>"
31
- '<div align="center"><a>参数说明:由于爱抖露们过于有感情,合成日语时建议将噪声比例调节至0.2-0.3区间,噪声偏差对应着每个字之间的间隔,对普通话影响较大,duration代表整体语速</div>'
32
  '<div align="center"><a>合成前请先选择模型,否则第一次合成不一定成功。长段落/小说合成建议colab或本地运行</div>')
33
  with gr.Tab("TTS合成"):
34
  with gr.Row():
 
18
  def __init__(self):
19
  self.dev = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
20
  self.lan = ["中文","日文","自动","手动"]
21
+ self.idols = ["歩夢","かすみ","しずく","果林","愛","せつ菜","璃奈","栞子","エマ","ランジュ","ミア","華恋","まひる","なな","クロディーヌ","ひかり",'純那',"香子","真矢","双葉","ミチル","メイファン","やちよ","晶","いちえ","ゆゆ子","塁","珠緒","あるる","ララフィン","美空","静羽"]
22
  self.modelPaths = []
23
  for root,dirs,files in os.walk("checkpoints"):
24
  for dir in dirs:
25
  self.modelPaths.append(dir)
26
  with gr.Blocks() as self.Vits:
27
  gr.Markdown(
28
+ "## <center> LoveLive!虹咲学园学园偶像同好会-少女☆歌劇 Vits\n"
29
  "### <center> 请不要生成会对个人以及企划造成侵害的内容\n"
30
+ "<div align='center'>这是一个实时更新的仓库,目前结束训练有标贝普通话版(biaobei),去标贝版(default),以及少歌部分角色版(ShojoKageki),正在训练中的全员版(tmp)。</div>"
31
+ '<div align="center"><a>参数说明:由于手游中提取的语音过于有感情,建议将噪声比例调节至0.2-0.3区间,ShojoKageki模型则可以尝试默认的0.667;噪声偏差对应着每个字之间的间隔,对普通话影响较大,建议0.6-0.8;duration代表整体语速</div>'
32
  '<div align="center"><a>合成前请先选择模型,否则第一次合成不一定成功。长段落/小说合成建议colab或本地运行</div>')
33
  with gr.Tab("TTS合成"):
34
  with gr.Row():