Mahiruoshi commited on
Commit
28fb579
1 Parent(s): 90e5179

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -12
app.py CHANGED
@@ -34,14 +34,19 @@ import re
34
  from scipy.io.wavfile import write
35
  net_g = None
36
  BandList = {
37
- "PoppinParty":["香澄","有咲","たえ","りみ","沙綾"],
38
- "Afterglow":["","モカ","ひまり","","つぐみ"],
39
- "HelloHappyWorld":["こころ","ミッシェル","","花音","はぐみ"],
40
- "PastelPalettes":["","日菜","千聖","イヴ","麻弥"],
41
- "Roselia":["友希那","紗夜","リサ","燐子","あこ"],
42
- "RaiseASuilen":["レイヤ","ロック","ますき","チュチュ","パレオ"],
43
- "Morfonica":["ましろ","瑠唯","つくし","七深","透子"],
44
- "MyGo&AveMujica(Part)":["","愛音","そよ","立希","楽奈","祥子","睦","海鈴"],
 
 
 
 
 
45
  }
46
 
47
  if sys.platform == "darwin" and torch.backends.mps.is_available():
@@ -336,12 +341,12 @@ def audiobook(inputFile, groupsize, speaker, sdp_ratio, noise_scale, noise_scale
336
  if __name__ == "__main__":
337
  parser = argparse.ArgumentParser()
338
  parser.add_argument(
339
- "-m", "--model", default="./logs/Bangdream/G_7000.pth", help="path of your model"
340
  )
341
  parser.add_argument(
342
  "-c",
343
  "--config",
344
- default="./logs/Bangdream/config.json",
345
  help="path of your config file",
346
  )
347
  parser.add_argument(
@@ -385,7 +390,7 @@ if __name__ == "__main__":
385
  ]
386
  with gr.Blocks() as app:
387
  gr.Markdown(
388
- f"少歌邦邦全员TTS,使用本模型请严格遵守法律法规!\n 发布二创作品请标注本项目作者<a href='https://space.bilibili.com/19874615/'>B站@Mahiroshi</a>及项目链接\n从 <a href='https://nijigaku.top/2023/10/03/BangDreamTTS/'>我的博客站点</a> 查看使用说明</a>"
389
  )
390
  for band in BandList:
391
  with gr.TabItem(band):
@@ -404,7 +409,7 @@ if __name__ == "__main__":
404
  text = gr.TextArea(
405
  label="输入纯日语或者中文",
406
  placeholder="输入纯日语或者中文",
407
- value="純粋な日本語または中国語を入力してください。",
408
  )
409
  btn = gr.Button("点击生成", variant="primary")
410
  audio_output = gr.Audio(label="Output Audio")
 
34
  from scipy.io.wavfile import write
35
  net_g = None
36
  BandList = {
37
+
38
+ "PoppinParty":["香澄","有咲","たえ","りみ","沙綾"],
39
+ "Afterglow":["","モカ","ひまり","","つぐみ"],
40
+ "HelloHappyWorld":["こころ","美咲","","花音","はぐみ"],
41
+ "PastelPalettes":["","日菜","千聖","イヴ","麻弥"],
42
+ "Roselia":["友希那","紗夜","リサ","燐子","あこ"],
43
+ "RaiseASuilen":["レイヤ","ロック","ますき","チュチュ","パレオ"],
44
+ "Morfonica":["ましろ","瑠唯","つくし","七深","透子"],
45
+ "MyGo&AveMujica(Part)":["燈","愛音","そよ","立希","楽奈","祥子","睦","海鈴"],
46
+ "圣翔音乐学园":["華戀","光","香子","雙葉","真晝","純那","克洛迪娜","真矢","奈奈"],
47
+ "凛明馆女子学校":["珠緒","壘","文","悠悠子","一愛"],
48
+ "弗隆提亚艺术学校":["艾露","艾露露","菈樂菲","司","靜羽"],
49
+ "西克菲尔特音乐学院":["晶","未知留","八千代","栞","美帆"]
50
  }
51
 
52
  if sys.platform == "darwin" and torch.backends.mps.is_available():
 
341
  if __name__ == "__main__":
342
  parser = argparse.ArgumentParser()
343
  parser.add_argument(
344
+ "-m", "--model", default="./logs/Bushiroad/G_10000.pth", help="path of your model"
345
  )
346
  parser.add_argument(
347
  "-c",
348
  "--config",
349
+ default="./logs/Bushiroad/config.json",
350
  help="path of your config file",
351
  )
352
  parser.add_argument(
 
390
  ]
391
  with gr.Blocks() as app:
392
  gr.Markdown(
393
+ f"少歌邦邦全员TTS,使用本模型请严格遵守法律法规!\n 发布二创作品请注明项目和本模型作者<a href='https://space.bilibili.com/19874615/'>B站@Mahiroshi</a>及项目链接\n从 <a href='https://nijigaku.top/2023/10/03/BangDreamTTS/'>我的博客站点</a> 查看使用说明</a>"
394
  )
395
  for band in BandList:
396
  with gr.TabItem(band):
 
409
  text = gr.TextArea(
410
  label="输入纯日语或者中文",
411
  placeholder="输入纯日语或者中文",
412
+ value="有个人躺在地上。\n\n有个人睡着了。\n\n我要把它打开,看看他的梦是什么。\n\n近,是因为它就在身边。\n\n远,是因为看不见。",
413
  )
414
  btn = gr.Button("点击生成", variant="primary")
415
  audio_output = gr.Audio(label="Output Audio")