ilushado commited on
Commit
cd4ae85
·
1 Parent(s): 9e69dbf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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, 5)
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)