Spaces:
Build error
Build error
Update model.py
Browse files
model.py
CHANGED
@@ -46,7 +46,7 @@ class UnionModel(nn.Module):
|
|
46 |
param.requires_grad = False
|
47 |
|
48 |
self.bert_model.pooler = nn.Linear(in_features=768, out_features=256)
|
49 |
-
self.bert_model.to('
|
50 |
|
51 |
self.category_head = CategoryHead()
|
52 |
self.sentiment_head = SentimentHead()
|
|
|
46 |
param.requires_grad = False
|
47 |
|
48 |
self.bert_model.pooler = nn.Linear(in_features=768, out_features=256)
|
49 |
+
self.bert_model.to('cpu')
|
50 |
|
51 |
self.category_head = CategoryHead()
|
52 |
self.sentiment_head = SentimentHead()
|