Skip to content

Commit

Permalink
Fix TTS().list_models()
Browse files Browse the repository at this point in the history
  • Loading branch information
greerviau authored and eginhard committed Mar 6, 2024
1 parent fa28f99 commit 02d88b5
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 @@ -122,8 +122,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 02d88b5

Please sign in to comment.