mirror of https://github.com/coqui-ai/TTS.git
make list_models() a static method
This commit is contained in:
parent
e2f306e848
commit
fb1b5cedb6
|
@ -122,6 +122,7 @@ 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"
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
def list_models(self):
|
def list_models(self):
|
||||||
return ModelManager(models_file=TTS.get_models_file_path(), progress_bar=False, verbose=False).list_models()
|
return ModelManager(models_file=TTS.get_models_file_path(), progress_bar=False, verbose=False).list_models()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue