Bug: self.model_name needed to be initialized.

Bug: self.model_name needed to be initialize to get around a bug that automatically crashes when the user provides the model paths but no model_name when initializing the TTS object.
This commit is contained in:
VLT Media 2023-09-23 01:41:35 -04:00 committed by GitHub
parent da8b6bbce1
commit dd73910651
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ class TTS(nn.Module):
self.voice_converter = None
self.csapi = None
self.cs_api_model = cs_api_model
self.model_name = None
self.model_name = ""
if gpu:
warnings.warn("`gpu` will be deprecated. Please use `tts.to(device)` instead.")