Update app.py
Browse files4 unmodified lines56788910114 unmodified lines#Defining the classify function which takes text as input and returns the label of the sentimentdef classify(text): # Initializing the pipeline for sentiment analysis cls = pipeline('text-classification', model='RJuro/dk_emotion_bert_in_class') cls = pipeline('text-classification', model='Only-Mike/dk_emotion_bert_2') # Predicting the sentiment label for the input text return cls(text)[0]['label']
app.py+1-1