mirror of https://github.com/coqui-ai/TTS.git
Update api.py
This commit is contained in:
parent
6b0b7ea33c
commit
aef127f7d7
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue