Fix TTS().list_models()

This commit is contained in:
Greer 2023-12-13 00:21:39 -05:00 committed by Enno Hermann
parent fa28f99f15
commit 02d88b5dec
1 changed files with 3 additions and 2 deletions

View File

@ -122,8 +122,9 @@ class TTS(nn.Module):
def get_models_file_path():
return Path(__file__).parent / ".models.json"
def list_models(self):
return ModelManager(models_file=TTS.get_models_file_path(), progress_bar=False, verbose=False)
@staticmethod
def list_models():
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)