Commit
·
381ac53
1
Parent(s):
1975f2c
Update pipeline.py
Browse files- pipeline.py +2 -2
pipeline.py
CHANGED
@@ -5,8 +5,8 @@ class PreTrainedPipeline():
|
|
5 |
"""
|
6 |
Initialize model
|
7 |
"""
|
8 |
-
self.model = AutoModelForSequenceClassification.from_pretrained(
|
9 |
-
self.tokenizer = AutoTokenizer.from_pretrained(
|
10 |
|
11 |
def __call__(self, inputs):
|
12 |
"""
|
|
|
5 |
"""
|
6 |
Initialize model
|
7 |
"""
|
8 |
+
self.model = AutoModelForSequenceClassification.from_pretrained("garrettbaber/twitter-roberta-base-fear-intensity")
|
9 |
+
self.tokenizer = AutoTokenizer.from_pretrained("garrettbaber/twitter-roberta-base-fear-intensity")
|
10 |
|
11 |
def __call__(self, inputs):
|
12 |
"""
|