Skip to content

Commit

Permalink
Update api.py
Browse files Browse the repository at this point in the history
list_models should return list of models, not model manager
  • Loading branch information
hadariru authored Mar 7, 2024
1 parent dbf1a08 commit cb5b404
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TTS/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cb5b404

Please sign in to comment.