Update api.py

This commit is contained in:
Ben Epstein 2024-05-05 19:18:15 -04:00 committed by GitHub
parent aef127f7d7
commit 45d9ae948f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ class TTS(nn.Module):
@staticmethod
def list_models():
return ModelManager(models_file=TTS.get_models_file_path(), progress_bar=False, verbose=False)
return ModelManager(models_file=TTS.get_models_file_path(), progress_bar=False, verbose=False).list_models()
def download_model_by_name(self, model_name: str):
model_path, config_path, model_item = self.manager.download_model(model_name)