Spaces:
Sleeping
Sleeping
update app.py
Browse files
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.
|
| 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 ={
|