Update README.md
Browse files
README.md
CHANGED
@@ -36,6 +36,8 @@ 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/DeBERTa-v3-base-joke_detector/'
|
41 |
max_seq_len = 510
|
|
|
36 |
### How to use
|
37 |
```python
|
38 |
from transformers import pipeline
|
39 |
+
import torch
|
40 |
+
|
41 |
device = 0 if torch.cuda.is_available() else -1
|
42 |
model_name = 'Reggie/DeBERTa-v3-base-joke_detector/'
|
43 |
max_seq_len = 510
|