ORI-Muchim commited on
Commit
ec838b3
Β·
verified Β·
1 Parent(s): 58de163

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -8
app.py CHANGED
@@ -79,11 +79,9 @@ css = """
79
 
80
  if __name__ == '__main__':
81
  models_tts = []
82
- models_vc = []
83
- models_soft_vc = []
84
- name = 'BlueArchiveTTS'
85
  lang = 'ζ—₯本θͺž (Japanese)'
86
- example = 'ε…ˆη”Ÿγ€δ½•γ‚’γŠζ‰‹δΌγ„γ—γΎγ—γ‚‡γ†γ‹οΌŸ'
87
  config_path = f"saved_model/config.json"
88
  model_path = f"saved_model/model.pth"
89
  cover_path = f"saved_model/cover.png"
@@ -118,15 +116,15 @@ if __name__ == '__main__':
118
  app = gr.Blocks(css=css)
119
 
120
  with app:
121
- gr.Markdown("# BlueArchiveTTS Using VITS2 Model\n\n"
122
  "## Model Updated: VITS -> VITS2\n\n"
123
- "![visitor badge](https://visitor-badge.glitch.me/badge?page_id=ORI-Muchim.BlueArchiveTTS)\n\n")
124
  with gr.Tabs():
125
  with gr.TabItem("TTS"):
126
  with gr.Tabs():
127
  for i, (name, cover_path, speakers, lang, example, symbols, tts_fn,
128
  to_phoneme_fn) in enumerate(models_tts):
129
- with gr.TabItem(f"BlueArchive"):
130
  with gr.Column():
131
  gr.Markdown(f"## {name}\n\n"
132
  f"![cover](file/{cover_path})\n\n"
@@ -142,4 +140,4 @@ if __name__ == '__main__':
142
  tts_submit.click(tts_fn, [tts_input1, tts_input2, tts_input3],
143
  [tts_output1, tts_output2])
144
 
145
- app.queue(concurrency_count=3).launch(show_api=False)
 
79
 
80
  if __name__ == '__main__':
81
  models_tts = []
82
+ name = 'HioriTTS'
 
 
83
  lang = 'ζ—₯本θͺž (Japanese)'
84
+ example = 'プロデγƒ₯γƒΌγ‚΅γƒΌγ€δ»Šζ—₯も良い一ζ—₯を!'
85
  config_path = f"saved_model/config.json"
86
  model_path = f"saved_model/model.pth"
87
  cover_path = f"saved_model/cover.png"
 
116
  app = gr.Blocks(css=css)
117
 
118
  with app:
119
+ gr.Markdown("# HioriTTS Using VITS2 Model\n\n"
120
  "## Model Updated: VITS -> VITS2\n\n"
121
+ "![visitor badge](https://visitor-badge.glitch.me/badge?page_id=ORI-Muchim.HioriTTS)\n\n")
122
  with gr.Tabs():
123
  with gr.TabItem("TTS"):
124
  with gr.Tabs():
125
  for i, (name, cover_path, speakers, lang, example, symbols, tts_fn,
126
  to_phoneme_fn) in enumerate(models_tts):
127
+ with gr.TabItem(f"Hiori"):
128
  with gr.Column():
129
  gr.Markdown(f"## {name}\n\n"
130
  f"![cover](file/{cover_path})\n\n"
 
140
  tts_submit.click(tts_fn, [tts_input1, tts_input2, tts_input3],
141
  [tts_output1, tts_output2])
142
 
143
+ app.queue(concurrency_count=3).launch(show_api=False)