Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ tokenizer = AutoTokenizer.from_pretrained(model_name, use_fast=False)
|
|
29 |
sentiment_model = AutoModelForSequenceClassification.from_pretrained("SamanthaStorm/tether-sentiment").to(device)
|
30 |
sentiment_tokenizer = AutoTokenizer.from_pretrained("SamanthaStorm/tether-sentiment", use_fast=False)
|
31 |
|
32 |
-
emotion_pipeline =
|
33 |
"text-classification",
|
34 |
model="j-hartmann/emotion-english-distilroberta-base",
|
35 |
tokenizer="j-hartmann/emotion-english-distilroberta-base",
|
|
|
29 |
sentiment_model = AutoModelForSequenceClassification.from_pretrained("SamanthaStorm/tether-sentiment").to(device)
|
30 |
sentiment_tokenizer = AutoTokenizer.from_pretrained("SamanthaStorm/tether-sentiment", use_fast=False)
|
31 |
|
32 |
+
emotion_pipeline = hf_pipeline(
|
33 |
"text-classification",
|
34 |
model="j-hartmann/emotion-english-distilroberta-base",
|
35 |
tokenizer="j-hartmann/emotion-english-distilroberta-base",
|