Upload 2 files
Browse files- gpt_config.py +1 -0
gpt_config.py
CHANGED
|
@@ -162,6 +162,7 @@ class XTTSGPTConfig(PretrainedConfig):
|
|
| 162 |
def from_dict(cls, config_dict):
|
| 163 |
"""Create config from dictionary"""
|
| 164 |
audio_config = XTTSAudioConfig(**config_dict.pop("audio_config", {}))
|
|
|
|
| 165 |
return cls(audio_config=audio_config, **config_dict)
|
| 166 |
|
| 167 |
def update_with_tokenizer(self, tokenizer=None):
|
|
|
|
| 162 |
def from_dict(cls, config_dict):
|
| 163 |
"""Create config from dictionary"""
|
| 164 |
audio_config = XTTSAudioConfig(**config_dict.pop("audio_config", {}))
|
| 165 |
+
config_dict.pop('name_or_path', None)
|
| 166 |
return cls(audio_config=audio_config, **config_dict)
|
| 167 |
|
| 168 |
def update_with_tokenizer(self, tokenizer=None):
|