sohomghosh
commited on
Commit
•
0b585fd
1
Parent(s):
17ef62c
Update README.md
Browse files
README.md
CHANGED
@@ -6,7 +6,7 @@ How to load the model and generate predictions?
|
|
6 |
```python
|
7 |
import torch
|
8 |
import transformers
|
9 |
-
from torch.utils.data import Dataset,
|
10 |
from transformers import RobertaModel, RobertaTokenizer, BertModel, BertTokenizer
|
11 |
|
12 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
|
6 |
```python
|
7 |
import torch
|
8 |
import transformers
|
9 |
+
from torch.utils.data import Dataset, DataLoader
|
10 |
from transformers import RobertaModel, RobertaTokenizer, BertModel, BertTokenizer
|
11 |
|
12 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|