Fix TTS().list_models()

This commit is contained in:
Greer 2023-12-13 00:21:39 -05:00 committed by GitHub
parent fa28f99f15
commit e2f306e848
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ class TTS(nn.Module):
return Path(__file__).parent / ".models.json"
def list_models(self):
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)