Update README.md
Browse files
README.md
CHANGED
@@ -33,10 +33,9 @@ model = AutoModelForSequenceClassification.from_pretrained(checkpoint,
|
|
33 |
id2label=id2label,
|
34 |
label2id=label2id,
|
35 |
device_map='auto')
|
36 |
-
|
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!"))
|