This commit is contained in:
Eren G??lge 2023-11-28 13:47:45 +01:00
parent 18b7d746cb
commit bfbaffc84a
1 changed files with 1 additions and 1 deletions

View File

@ -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: