Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ class BertModel(torch.nn.Module):
|
|
19 |
|
20 |
super(BertModel, self).__init__()
|
21 |
|
22 |
-
self.bert = BertForTokenClassification.from_pretrained('law-ai/InLegalBERT', num_labels=
|
23 |
|
24 |
def forward(self, input_id, mask, label):
|
25 |
|
|
|
19 |
|
20 |
super(BertModel, self).__init__()
|
21 |
|
22 |
+
self.bert = BertForTokenClassification.from_pretrained('law-ai/InLegalBERT', num_labels=14)
|
23 |
|
24 |
def forward(self, input_id, mask, label):
|
25 |
|