mirror of https://github.com/coqui-ai/TTS.git
Fixup
This commit is contained in:
parent
18b7d746cb
commit
bfbaffc84a
|
@ -76,7 +76,7 @@ class TTS(nn.Module):
|
|||
if gpu:
|
||||
warnings.warn("`gpu` will be deprecated. Please use `tts.to(device)` instead.")
|
||||
|
||||
if model_name is not None:
|
||||
if model_name is not None and len(model_name) > 0:
|
||||
if "tts_models" in model_name or "coqui_studio" in model_name:
|
||||
self.load_tts_model_by_name(model_name, gpu)
|
||||
elif "voice_conversion_models" in model_name:
|
||||
|
|
Loading…
Reference in New Issue