nie3e commited on
Commit
0484da9
·
1 Parent(s): 2f80df4

Adds model device

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