Update README.md
Browse files
README.md
CHANGED
@@ -52,8 +52,8 @@ import torch
|
|
52 |
import torch.nn.functional as F
|
53 |
from transformers import BertForSequenceClassification, BertTokenizer
|
54 |
|
55 |
-
model = BertForSequenceClassification.from_pretrained('
|
56 |
-
tokenizer = BertTokenizer.from_pretrained('
|
57 |
device = torch.device('cuda') if torch.cuda.is_available() else torch.device('cpu') # gather device
|
58 |
model.to(device) # move to device
|
59 |
model.eval() # put in eval mode
|
|
|
52 |
import torch.nn.functional as F
|
53 |
from transformers import BertForSequenceClassification, BertTokenizer
|
54 |
|
55 |
+
model = BertForSequenceClassification.from_pretrained('GleghornLab/SYNTERACT') # load model
|
56 |
+
tokenizer = BertTokenizer.from_pretrained('GleghornLab/SYNTERACT') # load tokenizer
|
57 |
device = torch.device('cuda') if torch.cuda.is_available() else torch.device('cpu') # gather device
|
58 |
model.to(device) # move to device
|
59 |
model.eval() # put in eval mode
|