Update README.md
Browse files
README.md
CHANGED
@@ -35,6 +35,7 @@ You'll need to pip install transformers & maybe sentencepiece
|
|
35 |
### How to use
|
36 |
```python
|
37 |
from transformers import pipeline
|
|
|
38 |
device = 0 if torch.cuda.is_available() else -1
|
39 |
model_name = 'Reggie/muppet-roberta-base-joke_detector'
|
40 |
max_seq_len = 510
|
|
|
35 |
### How to use
|
36 |
```python
|
37 |
from transformers import pipeline
|
38 |
+
import torch
|
39 |
device = 0 if torch.cuda.is_available() else -1
|
40 |
model_name = 'Reggie/muppet-roberta-base-joke_detector'
|
41 |
max_seq_len = 510
|