Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -39,7 +39,7 @@ class RobertaClass(torch.nn.Module):
|
|
| 39 |
self.l1 = RobertaModel.from_pretrained("roberta-base")
|
| 40 |
self.pre_classifier = torch.nn.Linear(768, 768)
|
| 41 |
self.dropout = torch.nn.Dropout(0.3)
|
| 42 |
-
self.classifier = torch.nn.Linear(768,
|
| 43 |
|
| 44 |
def forward(self, input_ids, attention_mask, token_type_ids):
|
| 45 |
output_1 = self.l1(input_ids=input_ids, attention_mask=attention_mask, token_type_ids=token_type_ids)
|
|
|
|
| 39 |
self.l1 = RobertaModel.from_pretrained("roberta-base")
|
| 40 |
self.pre_classifier = torch.nn.Linear(768, 768)
|
| 41 |
self.dropout = torch.nn.Dropout(0.3)
|
| 42 |
+
self.classifier = torch.nn.Linear(768, 10)
|
| 43 |
|
| 44 |
def forward(self, input_ids, attention_mask, token_type_ids):
|
| 45 |
output_1 = self.l1(input_ids=input_ids, attention_mask=attention_mask, token_type_ids=token_type_ids)
|