Shivenduu's picture
Initial commit for Flask Docker Space
b20cbbf
raw
history blame contribute delete
274 Bytes
def map_to_mood(label):
mapping = {
'joy': 'Happy',
'neutral': 'Neutral',
'sadness': 'Sad',
'anger': 'Angry',
'disgust': 'Angry',
'fear': 'Sad',
'surprise': 'Neutral'
}
return mapping.get(label, 'Neutral')