Plachta commited on
Commit
e2f2ce0
1 Parent(s): d1074fe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -145,7 +145,7 @@ models_info = [
145
  "languages": ["日本語"],
146
  "description": "",
147
  "model_path": "./pretrained_models/G_1153000.pth",
148
- "config_path": "./configs/uma87.json"
149
  "examples": [['お疲れ様です,トレーナーさん。', 'Silence Suzuka', '日本語', 1, False],
150
  ['張り切っていこう!', 'Kitasan Black', '日本語', 1, False],
151
  ['何でこんなに慣れでんのよ,私のほが先に好きだっだのに。', 'Grass Wonder', '日本語', 1, False],
@@ -158,7 +158,7 @@ models_info = [
158
  "languages": ['日本語', '简体中文', 'English', 'Mix'],
159
  "description": "",
160
  "model_path": "./pretrained_models/G_1396000.pth",
161
- "config_path": "./configs/uma_trilingual.json"
162
  "examples": [['你好,训练员先生,很高兴见到你。', '草上飞 Grass Wonder (Umamusume Pretty Derby)', '简体中文', 1, False],
163
  ['To be honest, I have no idea what to say as examples.', '派蒙 Paimon (Genshin Impact)', 'English', 1, False],
164
  ['授業中に出しだら,学校生活終わるですわ。', '綾地 寧々 Ayachi Nene (Sanoba Witch)', '日本語', 1, False]]
@@ -204,7 +204,7 @@ if __name__ == "__main__":
204
  with gr.TabItem("TTS"):
205
  with gr.Tabs():
206
  for i, (name, speakers, lang, example, symbols, tts_fn, to_symbol_fn) in enumerate(models_tts):
207
- with gr.TabItem(name)
208
  with gr.Row():
209
  with gr.Column():
210
  textbox = gr.TextArea(label="Text", placeholder="Type your sentence here (Maximum 150 words)", value="こんにちわ。", elem_id=f"tts-input")
 
145
  "languages": ["日本語"],
146
  "description": "",
147
  "model_path": "./pretrained_models/G_1153000.pth",
148
+ "config_path": "./configs/uma87.json",
149
  "examples": [['お疲れ様です,トレーナーさん。', 'Silence Suzuka', '日本語', 1, False],
150
  ['張り切っていこう!', 'Kitasan Black', '日本語', 1, False],
151
  ['何でこんなに慣れでんのよ,私のほが先に好きだっだのに。', 'Grass Wonder', '日本語', 1, False],
 
158
  "languages": ['日本語', '简体中文', 'English', 'Mix'],
159
  "description": "",
160
  "model_path": "./pretrained_models/G_1396000.pth",
161
+ "config_path": "./configs/uma_trilingual.json",
162
  "examples": [['你好,训练员先生,很高兴见到你。', '草上飞 Grass Wonder (Umamusume Pretty Derby)', '简体中文', 1, False],
163
  ['To be honest, I have no idea what to say as examples.', '派蒙 Paimon (Genshin Impact)', 'English', 1, False],
164
  ['授業中に出しだら,学校生活終わるですわ。', '綾地 寧々 Ayachi Nene (Sanoba Witch)', '日本語', 1, False]]
 
204
  with gr.TabItem("TTS"):
205
  with gr.Tabs():
206
  for i, (name, speakers, lang, example, symbols, tts_fn, to_symbol_fn) in enumerate(models_tts):
207
+ with gr.TabItem(name):
208
  with gr.Row():
209
  with gr.Column():
210
  textbox = gr.TextArea(label="Text", placeholder="Type your sentence here (Maximum 150 words)", value="こんにちわ。", elem_id=f"tts-input")