Spaces:
Sleeping
Sleeping
Update model.py
Browse files
model.py
CHANGED
|
@@ -52,4 +52,4 @@ class FramingBiasClassifier(nn.Module):
|
|
| 52 |
|
| 53 |
def forward(self, input_ids, attention_mask, **kwargs):
|
| 54 |
out = self.encoder(input_ids=input_ids, attention_mask=attention_mask)
|
| 55 |
-
return self.classifier(out.last_hidden_state[:, 0, :])
|
|
|
|
| 52 |
|
| 53 |
def forward(self, input_ids, attention_mask, **kwargs):
|
| 54 |
out = self.encoder(input_ids=input_ids, attention_mask=attention_mask)
|
| 55 |
+
return self.classifier(out.last_hidden_state[:, 0, :])
|