Update custom_model_package/custom_model.py
Browse files
custom_model_package/custom_model.py
CHANGED
@@ -9,7 +9,7 @@ class CustomConfig(PretrainedConfig):
|
|
9 |
super().__init__(**kwargs)
|
10 |
self.num_emotion_labels = num_emotion_labels
|
11 |
|
12 |
-
class CustomModel(
|
13 |
config_class = CustomConfig
|
14 |
|
15 |
def __init__(self, config, num_emotion_labels):
|
|
|
9 |
super().__init__(**kwargs)
|
10 |
self.num_emotion_labels = num_emotion_labels
|
11 |
|
12 |
+
class CustomModel(PreTrainedModel):
|
13 |
config_class = CustomConfig
|
14 |
|
15 |
def __init__(self, config, num_emotion_labels):
|