mirror of https://github.com/coqui-ai/TTS.git
Override checkpoint and config with CLI args if present
This commit is contained in:
parent
e2e92b63d5
commit
856e87a6a8
|
@ -55,8 +55,11 @@ def tts():
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
if not config or not synthesizer:
|
|
||||||
args = create_argparser().parse_args()
|
args = create_argparser().parse_args()
|
||||||
|
|
||||||
|
# Setup synthesizer from CLI args if they're specified or no embedded model
|
||||||
|
# is present.
|
||||||
|
if not config or not synthesizer or args.tts_checkpoint or args.tts_config:
|
||||||
synthesizer = Synthesizer(args)
|
synthesizer = Synthesizer(args)
|
||||||
|
|
||||||
app.run(debug=config.debug, host='0.0.0.0', port=config.port)
|
app.run(debug=config.debug, host='0.0.0.0', port=config.port)
|
||||||
|
|
Loading…
Reference in New Issue