Karthikeyan commited on
Commit
9f4bbc0
1 Parent(s): 1bc01da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -26,7 +26,7 @@ class SentimentAnalyzer:
26
  return sentiment_scores_str
27
  def emotion_analysis(self,text):
28
  prompt = f""" Your task is find the top 1 emotion : <Sadness, Happiness, Joy, Fear, Disgust, Anger> and it's emotion score of the text.\
29
- your are analyze the text and provide the output in the following list format: [emotions][scores]''' [with top 1 result having the highest score]
30
  The scores should be in the range of 0.0 to 1.0, where 1.0 represents the highest intensity of the emotion.\
31
  analyze the text : '''{text}'''
32
  """
 
26
  return sentiment_scores_str
27
  def emotion_analysis(self,text):
28
  prompt = f""" Your task is find the top 1 emotion : <Sadness, Happiness, Joy, Fear, Disgust, Anger> and it's emotion score of the text.\
29
+ your are analyze the text and provide the output in the following list format heigher to lower order: [emotion1,emotion2,emotion3][score1,score2,score3]''' [with top 1 result having the highest score]
30
  The scores should be in the range of 0.0 to 1.0, where 1.0 represents the highest intensity of the emotion.\
31
  analyze the text : '''{text}'''
32
  """