update model_type
Browse files- configuration_tjmg.py +1 -0
configuration_tjmg.py
CHANGED
|
@@ -2,6 +2,7 @@ from transformers import PretrainedConfig
|
|
| 2 |
|
| 3 |
# Configuração do Modelo (similar ao PretrainedConfig do Hugging Face)
|
| 4 |
class CaptchaConfig(PretrainedConfig):
|
|
|
|
| 5 |
def __init__(self, input_dim=(40, 110), output_ndigits=5, output_vocab_size=10, vocab=None, **kwargs):
|
| 6 |
super().__init__(**kwargs)
|
| 7 |
self.input_dim = input_dim
|
|
|
|
| 2 |
|
| 3 |
# Configuração do Modelo (similar ao PretrainedConfig do Hugging Face)
|
| 4 |
class CaptchaConfig(PretrainedConfig):
|
| 5 |
+
model_type = "captcha"
|
| 6 |
def __init__(self, input_dim=(40, 110), output_ndigits=5, output_vocab_size=10, vocab=None, **kwargs):
|
| 7 |
super().__init__(**kwargs)
|
| 8 |
self.input_dim = input_dim
|