Use model_dir when there are multiple urls

This commit is contained in:
Eren G??lge 2023-05-06 11:34:26 +02:00
parent b6b01b4f92
commit 90b33e398f
1 changed files with 2 additions and 2 deletions

View File

@ -349,8 +349,8 @@ If you don't specify any models, then it uses LJSpeech based English model.
vc_path = model_path vc_path = model_path
vc_config_path = config_path vc_config_path = config_path
# tortoise model # tts model with multiple files to be loaded from the directory path
if model_path.split("--")[-1] == "tortoise-v2": if isinstance(model_item["github_rls_url"], list):
model_dir = model_path model_dir = model_path
tts_path = None tts_path = None
tts_config_path = None tts_config_path = None