Update api.py

This commit is contained in:
Ben Epstein 2024-05-05 19:12:58 -04:00 committed by GitHub
parent 6b0b7ea33c
commit aef127f7d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -122,7 +122,8 @@ class TTS(nn.Module):
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):