Update app.py
Browse files4 unmodified lines5678910114 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 analysiscls = pipeline('text-classification', model='RJuro/dk_emotion_bert_in_class')# Predicting the sentiment label for the input textreturn cls(text)[0]['label']4 unmodified lines5678910114 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 analysiscls = pipeline('text-classification', model='Only-Mike/dk_emotion_bert_2')# Predicting the sentiment label for the input textreturn cls(text)[0]['label']
app.py+1-1