Adds model device
Browse files
README.md
CHANGED
@@ -78,7 +78,7 @@ checkpoint = "nie3e/go-emotions-polish-gpt2-small-v0.0.1"
|
|
78 |
tokenizer = AutoTokenizer.from_pretrained(checkpoint)
|
79 |
model = AutoModelForSequenceClassification.from_pretrained(
|
80 |
checkpoint, problem_type="multi_label_classification"
|
81 |
-
)
|
82 |
|
83 |
text = "To jest model wykrywający super emocje w tekście! :D"
|
84 |
|
|
|
78 |
tokenizer = AutoTokenizer.from_pretrained(checkpoint)
|
79 |
model = AutoModelForSequenceClassification.from_pretrained(
|
80 |
checkpoint, problem_type="multi_label_classification"
|
81 |
+
).to(device)
|
82 |
|
83 |
text = "To jest model wykrywający super emocje w tekście! :D"
|
84 |
|