Skip to content

Commit

Permalink
Merge pull request #5 from eginhard/fix-list-models
Browse files Browse the repository at this point in the history
Fix TTS().list_models()
  • Loading branch information
eginhard authored Mar 7, 2024
2 parents 7f83dea + 02d88b5 commit f6464d7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions TTS/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,9 @@ def languages(self):
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)
Expand Down

0 comments on commit f6464d7

Please sign in to comment.