Update app.py
Browse files
app.py
CHANGED
@@ -17,8 +17,6 @@ class MyModel(nn.Module):
|
|
17 |
def __init__(self):
|
18 |
super().__init__()
|
19 |
self.bert1 = EsmForSequenceClassification.from_pretrained(model_checkpoint1, num_labels=3000) # 3000
|
20 |
-
# for param in self.bert1.parameters():
|
21 |
-
# param.requires_grad = False
|
22 |
self.bn1 = nn.BatchNorm1d(256)
|
23 |
self.bn2 = nn.BatchNorm1d(128)
|
24 |
self.bn3 = nn.BatchNorm1d(64)
|
|
|
17 |
def __init__(self):
|
18 |
super().__init__()
|
19 |
self.bert1 = EsmForSequenceClassification.from_pretrained(model_checkpoint1, num_labels=3000) # 3000
|
|
|
|
|
20 |
self.bn1 = nn.BatchNorm1d(256)
|
21 |
self.bn2 = nn.BatchNorm1d(128)
|
22 |
self.bn3 = nn.BatchNorm1d(64)
|