lang-detect / configuration_lang.py
emanuelaboros's picture
checking if other model thigns are needed
ab2c71f
raw
history blame contribute delete
379 Bytes
from transformers import PretrainedConfig
import torch
class ImpressoConfig(PretrainedConfig):
model_type = "lang_detect"
def __init__(
self,
filename=None,
**kwargs,
):
super().__init__(**kwargs)
self.filename = filename
# Register the configuration with the transformers library
ImpressoConfig.register_for_auto_class()