mirror of https://github.com/coqui-ai/TTS.git
fix loading of model and vocoder configs (#2698)
This commit is contained in:
parent
505ac1aa8f
commit
8957799e45
|
@ -162,11 +162,19 @@ def index():
|
||||||
|
|
||||||
@app.route("/details")
|
@app.route("/details")
|
||||||
def details():
|
def details():
|
||||||
model_config = load_config(args.tts_config)
|
if args.config_path is not None and os.path.isfile(args.config_path):
|
||||||
if args.vocoder_config is not None and os.path.isfile(args.vocoder_config):
|
model_config = load_config(args.config_path)
|
||||||
vocoder_config = load_config(args.vocoder_config)
|
|
||||||
else:
|
else:
|
||||||
vocoder_config = None
|
if args.model_name is not None:
|
||||||
|
model_config = load_config(config_path)
|
||||||
|
|
||||||
|
if args.vocoder_config_path is not None and os.path.isfile(args.vocoder_config_path):
|
||||||
|
vocoder_config = load_config(args.vocoder_config_path)
|
||||||
|
else:
|
||||||
|
if args.vocoder_name is not None:
|
||||||
|
vocoder_config = load_config(vocoder_config_path)
|
||||||
|
else:
|
||||||
|
vocoder_config = None
|
||||||
|
|
||||||
return render_template(
|
return render_template(
|
||||||
"details.html",
|
"details.html",
|
||||||
|
|
Loading…
Reference in New Issue