Spaces:
Sleeping
Sleeping
Alejadro Sanchez-Giraldo
commited on
Commit
β’
77d5f1f
1
Parent(s):
db12616
added new options base on new LLM
Browse files
app.py
CHANGED
@@ -27,7 +27,12 @@ def translate_label(label):
|
|
27 |
label_mapping = {
|
28 |
"LABEL_0": "π€¬ Negative",
|
29 |
"LABEL_1": "πΆ Neutral",
|
30 |
-
"LABEL_2": "π Positive"
|
|
|
|
|
|
|
|
|
|
|
31 |
}
|
32 |
return label_mapping.get(label, "Unknown")
|
33 |
|
|
|
27 |
label_mapping = {
|
28 |
"LABEL_0": "π€¬ Negative",
|
29 |
"LABEL_1": "πΆ Neutral",
|
30 |
+
"LABEL_2": "π Positive",
|
31 |
+
"1 star": "π€¬ Negative",
|
32 |
+
"2 stars": "π€¬ Negative",
|
33 |
+
"3 stars": "πΆ Neutral",
|
34 |
+
"4 stars": "π Positive",
|
35 |
+
"5 stars": "π Positive"
|
36 |
}
|
37 |
return label_mapping.get(label, "Unknown")
|
38 |
|