Update custom_model_package/custom_model.py
Browse files
custom_model_package/custom_model.py
CHANGED
|
@@ -10,6 +10,8 @@ class CustomConfig(PretrainedConfig):
|
|
| 10 |
self.num_emotion_labels = num_emotion_labels
|
| 11 |
|
| 12 |
class CustomModel(XLMRobertaForSequenceClassification):
|
|
|
|
|
|
|
| 13 |
def __init__(self, config, num_emotion_labels):
|
| 14 |
super(CustomModel, self).__init__(config)
|
| 15 |
self.num_emotion_labels = num_emotion_labels
|
|
|
|
| 10 |
self.num_emotion_labels = num_emotion_labels
|
| 11 |
|
| 12 |
class CustomModel(XLMRobertaForSequenceClassification):
|
| 13 |
+
config_class = CustomConfig
|
| 14 |
+
|
| 15 |
def __init__(self, config, num_emotion_labels):
|
| 16 |
super(CustomModel, self).__init__(config)
|
| 17 |
self.num_emotion_labels = num_emotion_labels
|