WIP: bing-patch-1 #2

Draft
bing wants to merge 3 commits from bing/TakwayDisplayPlatform:bing-patch-1 into master
1 changed files with 53 additions and 36 deletions
Showing only changes of commit 25b99502fd - Show all commits

View File

@ -9,6 +9,23 @@ model_args = {
}
class EmotionRecognition:
"""
9-class emotion
0: angry
1: disgusted
2: fearful
3: happy
4: neutral
5: other
6: sad
7: surprised
8: unknown
return :
[{"emotion": "angry", "weight": },
{"emotion": "disgusted", "weight": },
...
]
"""
def __init__(self) -> None:
self.initialize(model_args=model_args)