print the desc if required parameters are not provided

pull/2/head
Eren Gölge 2021-03-10 15:19:00 +01:00
parent 9e84c8a623
commit 6c932c8503
2 changed files with 4 additions and 1 deletions

View File

@ -150,6 +150,10 @@ def main():
args = parser.parse_args()
# print the description if either text or list_models is not set
if args.text is None and not args.list_models:
parser.parse_args(['-h'])
# load model manager
path = Path(__file__).parent / "../.models.json"
manager = ModelManager(path)

View File

@ -10,7 +10,6 @@ import torch
from TTS.tts.utils.generic_utils import check_config_tts
from TTS.tts.utils.text.symbols import parse_symbols
from TTS.tts.utils.io import load_checkpoint
from TTS.utils.console_logger import ConsoleLogger
from TTS.utils.generic_utils import create_experiment_folder, get_git_branch
from TTS.utils.io import copy_model_files, load_config