Initial model upload
Browse files
README.md
CHANGED
|
@@ -36,8 +36,8 @@ print(f"Sentiment: {result[0]['label']}, Score: {result[0]['score']:.4f}")
|
|
| 36 |
from transformers import AutoTokenizer, AutoModel
|
| 37 |
import torch
|
| 38 |
|
| 39 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
| 40 |
-
model = AutoModel.from_pretrained("
|
| 41 |
|
| 42 |
text = "I absolutely loved this movie! The acting was superb."
|
| 43 |
inputs = tokenizer(text, return_tensors="pt")
|
|
|
|
| 36 |
from transformers import AutoTokenizer, AutoModel
|
| 37 |
import torch
|
| 38 |
|
| 39 |
+
tokenizer = AutoTokenizer.from_pretrained("ericwei/attention-sentiment-classifier")
|
| 40 |
+
model = AutoModel.from_pretrained("weicwei/attention-sentiment-classifier")
|
| 41 |
|
| 42 |
text = "I absolutely loved this movie! The acting was superb."
|
| 43 |
inputs = tokenizer(text, return_tensors="pt")
|