Only-Mike commited on
Commit
19dfad9
1 Parent(s): bc1a7a6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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='RJuro/dk_emotion_bert_in_class')
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