Spaces:
Sleeping
Sleeping
Update bert_strim.py
Browse files- bert_strim.py +1 -1
bert_strim.py
CHANGED
|
@@ -8,7 +8,7 @@ tokenizer = AutoTokenizer.from_pretrained("cointegrated/rubert-tiny2")
|
|
| 8 |
model = BERTClassifier()
|
| 9 |
device = 'cpu'
|
| 10 |
|
| 11 |
-
model.load_state_dict(torch.load('
|
| 12 |
model.eval()
|
| 13 |
|
| 14 |
@st.cache_data
|
|
|
|
| 8 |
model = BERTClassifier()
|
| 9 |
device = 'cpu'
|
| 10 |
|
| 11 |
+
model.load_state_dict(torch.load('BERTmodel_weights2.pth',map_location=torch.device('cpu')))
|
| 12 |
model.eval()
|
| 13 |
|
| 14 |
@st.cache_data
|