litellm / services /whisper /utils /emotion.py
Ava2lon's picture
Upload 205 files
1425afc verified
Raw
History Blame Contribute Delete
293 Bytes
def emotion_score(words):
strong_words = [
"amazing", "crazy", "insane", "love", "hate",
"never", "always", "big", "huge", "shocking"
]
score = 0
for w in words:
if w["text"].lower() in strong_words:
score += 2
return min(score, 100)