Reggie commited on
Commit
34d0e5f
1 Parent(s): 15eb87b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -0
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