Naozumi0512 commited on
Commit
9aed3d3
1 Parent(s): deea864
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -379,12 +379,10 @@ if __name__ == "__main__":
379
  hps = utils.get_hparams_from_file(config.webui_config.config_path)
380
  # 若config.json中未指定版本则默认为最新版本
381
  version = hps.version if hasattr(hps, "version") else latest_version
382
- net_g = get_net_g(
383
- model_path=config.webui_config.model, version=version, device=device, hps=hps
384
- )
385
  speaker_ids = hps.data.spk2id
386
  speakers = list(speaker_ids.keys())
387
- languages = ["ZH", "JP", "EN", "mix", "auto"]
388
  with gr.Blocks() as app:
389
  with gr.Row():
390
  with gr.Column():
 
379
  hps = utils.get_hparams_from_file(config.webui_config.config_path)
380
  # 若config.json中未指定版本则默认为最新版本
381
  version = hps.version if hasattr(hps, "version") else latest_version
382
+ net_g = get_net_g(model_path=config.webui_config.model, device=device, hps=hps)
 
 
383
  speaker_ids = hps.data.spk2id
384
  speakers = list(speaker_ids.keys())
385
+ languages = ["WAITAU"]
386
  with gr.Blocks() as app:
387
  with gr.Row():
388
  with gr.Column():