This commit is contained in:
Krystian Wasilewski 2023-01-07 15:23:19 +01:00
parent f6c96a345f
commit dd63ddc9ce

View File

@ -58,4 +58,4 @@ def rec_score(first_id: str, second_id: str):
emotion_diff = 1 - cosine(first['emotions'], second['emotions'])
FS.set_variable('EMOTIONS', emotion_diff)
return {'score': FS.inference(['RECOMMENDATION'])}
return FS.inference(['RECOMMENDATION'])