Update gpt_config.py
Browse files- gpt_config.py +1 -1
gpt_config.py
CHANGED
@@ -154,7 +154,7 @@ class XTTSGPTConfig(PretrainedConfig):
|
|
154 |
return config_dict
|
155 |
|
156 |
@classmethod
|
157 |
-
def from_dict(cls, config_dict):
|
158 |
"""Create config from dictionary"""
|
159 |
audio_config = XTTSAudioConfig(**config_dict.pop("audio_config", {}))
|
160 |
return cls(audio_config=audio_config, **config_dict)
|
|
|
154 |
return config_dict
|
155 |
|
156 |
@classmethod
|
157 |
+
def from_dict(cls, config_dict, *arg, **kwargs):
|
158 |
"""Create config from dictionary"""
|
159 |
audio_config = XTTSAudioConfig(**config_dict.pop("audio_config", {}))
|
160 |
return cls(audio_config=audio_config, **config_dict)
|