make list_models() a static method

This commit is contained in:
Greer 2023-12-14 16:28:44 -05:00
parent e2f306e848
commit fb1b5cedb6
1 changed files with 1 additions and 0 deletions

View File

@ -122,6 +122,7 @@ class TTS(nn.Module):
def get_models_file_path():
return Path(__file__).parent / ".models.json"
@staticmethod
def list_models(self):
return ModelManager(models_file=TTS.get_models_file_path(), progress_bar=False, verbose=False).list_models()