Override checkpoint and config with CLI args if present

This commit is contained in:
Reuben Morais 2019-12-11 14:31:59 +01:00
parent e2e92b63d5
commit 856e87a6a8
1 changed files with 5 additions and 2 deletions

View File

@ -55,8 +55,11 @@ def tts():
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)
app.run(debug=config.debug, host='0.0.0.0', port=config.port)