abdull90 commited on
Commit
d1a4d05
·
verified ·
1 Parent(s): 65c6b90

update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -54,7 +54,7 @@ def extract_full_analysis(review):
54
  refined_aspects.append(full_word)
55
  refined_aspects = list(dict.fromkeys(refined_aspects))
56
 
57
- flat_preds = [d for sentence_preds in emopredictions for d in sentence_preds if d["score"] >= 0.1]
58
  emotions = [d["label"] for d in flat_preds]
59
  emotion_score = [d["score"] for d in flat_preds]
60
  dynamic_result ={
 
54
  refined_aspects.append(full_word)
55
  refined_aspects = list(dict.fromkeys(refined_aspects))
56
 
57
+ flat_preds = [d for sentence_preds in emopredictions for d in sentence_preds if d["score"] >= 0.5]
58
  emotions = [d["label"] for d in flat_preds]
59
  emotion_score = [d["score"] for d in flat_preds]
60
  dynamic_result ={