Use model_dir when there are multiple urls

pull/2592/head
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_config_path = config_path
# tortoise model
if model_path.split("--")[-1] == "tortoise-v2":
# tts model with multiple files to be loaded from the directory path
if isinstance(model_item["github_rls_url"], list):
model_dir = model_path
tts_path = None
tts_config_path = None