mirror of https://github.com/coqui-ai/TTS.git
Merge pull request #5 from eginhard/fix-list-models
Fix TTS().list_models()
This commit is contained in:
commit
f6464d7682
|
@ -120,8 +120,9 @@ class TTS(nn.Module):
|
||||||
def get_models_file_path():
|
def get_models_file_path():
|
||||||
return Path(__file__).parent / ".models.json"
|
return Path(__file__).parent / ".models.json"
|
||||||
|
|
||||||
def list_models(self):
|
@staticmethod
|
||||||
return ModelManager(models_file=TTS.get_models_file_path(), progress_bar=False, verbose=False)
|
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):
|
def download_model_by_name(self, model_name: str):
|
||||||
model_path, config_path, model_item = self.manager.download_model(model_name)
|
model_path, config_path, model_item = self.manager.download_model(model_name)
|
||||||
|
|
Loading…
Reference in New Issue