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