kumo24 commited on
Commit
55f9350
·
verified ·
1 Parent(s): bb54865

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -3
README.md CHANGED
@@ -33,10 +33,9 @@ model = AutoModelForSequenceClassification.from_pretrained(checkpoint,
33
  id2label=id2label,
34
  label2id=label2id,
35
  device_map='auto')
36
- device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
37
  sentiment_task = pipeline("sentiment-analysis",
38
  model=model,
39
- tokenizer=tokenizer,
40
- device = device)
41
 
42
  print(sentiment_task("Michigan Wolverines are Champions, Go Blue!"))
 
33
  id2label=id2label,
34
  label2id=label2id,
35
  device_map='auto')
36
+
37
  sentiment_task = pipeline("sentiment-analysis",
38
  model=model,
39
+ tokenizer=tokenizer)
 
40
 
41
  print(sentiment_task("Michigan Wolverines are Champions, Go Blue!"))