Skip to content

Commit

Permalink
Update api.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben-Epstein authored May 5, 2024
1 parent 6b0b7ea commit aef127f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion TTS/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ def languages(self):
def get_models_file_path():
return Path(__file__).parent / ".models.json"

def list_models(self):
@staticmethod
def list_models():
return ModelManager(models_file=TTS.get_models_file_path(), progress_bar=False, verbose=False)

def download_model_by_name(self, model_name: str):
Expand Down

0 comments on commit aef127f

Please sign in to comment.