Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
|
5 |
#Defining the classify function which takes text as input and returns the label of the sentiment
|
6 |
def classify(text):
|
7 |
# Initializing the pipeline for sentiment analysis
|
8 |
-
cls = pipeline('text-classification', model='
|
9 |
# Predicting the sentiment label for the input text
|
10 |
return cls(text)[0]['label']
|
11 |
|
|
|
5 |
#Defining the classify function which takes text as input and returns the label of the sentiment
|
6 |
def classify(text):
|
7 |
# Initializing the pipeline for sentiment analysis
|
8 |
+
cls = pipeline('text-classification', model='Only-Mike/dk_emotion_bert_2')
|
9 |
# Predicting the sentiment label for the input text
|
10 |
return cls(text)[0]['label']
|
11 |
|