From e2f306e848ce77156052067d9be69a9330f558f9 Mon Sep 17 00:00:00 2001 From: Greer Date: Wed, 13 Dec 2023 00:21:39 -0500 Subject: [PATCH 1/3] Fix TTS().list_models() --- TTS/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TTS/api.py b/TTS/api.py index 7abc188e74..c5f6be6cc3 100644 --- a/TTS/api.py +++ b/TTS/api.py @@ -123,7 +123,7 @@ 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) + 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) From fb1b5cedb6dd791c6553c531052b5510c0c9a98f Mon Sep 17 00:00:00 2001 From: Greer Date: Thu, 14 Dec 2023 16:28:44 -0500 Subject: [PATCH 2/3] make list_models() a static method --- TTS/api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/TTS/api.py b/TTS/api.py index c5f6be6cc3..17b331884a 100644 --- a/TTS/api.py +++ b/TTS/api.py @@ -122,6 +122,7 @@ def languages(self): def get_models_file_path(): return Path(__file__).parent / ".models.json" + @staticmethod def list_models(self): return ModelManager(models_file=TTS.get_models_file_path(), progress_bar=False, verbose=False).list_models() From 801a0137aa5524a1a90417319fe45809d8758af1 Mon Sep 17 00:00:00 2001 From: Greer Date: Wed, 20 Dec 2023 10:29:48 -0500 Subject: [PATCH 3/3] remove self reference --- TTS/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TTS/api.py b/TTS/api.py index 17b331884a..ab3efd64f0 100644 --- a/TTS/api.py +++ b/TTS/api.py @@ -123,7 +123,7 @@ def get_models_file_path(): return Path(__file__).parent / ".models.json" @staticmethod - def list_models(self): + 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):