hplisiecki
commited on
Commit
•
a6b71d3
1
Parent(s):
90e0f97
Update README.md
Browse files
README.md
CHANGED
@@ -51,7 +51,7 @@ model_directory = "word2affect_polish" # path to the cloned repository
|
|
51 |
model = CustomModel.from_pretrained(model_directory)
|
52 |
tokenizer = PreTrainedTokenizerFast.from_pretrained(model_directory)
|
53 |
|
54 |
-
inputs = tokenizer("
|
55 |
outputs = model(inputs['input_ids'], inputs['attention_mask'])
|
56 |
|
57 |
# Print out the emotion ratings
|
|
|
51 |
model = CustomModel.from_pretrained(model_directory)
|
52 |
tokenizer = PreTrainedTokenizerFast.from_pretrained(model_directory)
|
53 |
|
54 |
+
inputs = tokenizer("test", return_tensors="pt")
|
55 |
outputs = model(inputs['input_ids'], inputs['attention_mask'])
|
56 |
|
57 |
# Print out the emotion ratings
|