Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -106,10 +106,12 @@ if st.button("Classify Feedback"):
|
|
106 |
sentiment_label = "NEGATIVE"
|
107 |
sentiment_icon = "π" # Thumbs-down icon for negative
|
108 |
sentiment_color = "red" # Red color for negative
|
109 |
-
|
110 |
sentiment_label = "POSITIVE"
|
111 |
sentiment_icon = "π" # Thumbs-up icon for positive
|
112 |
sentiment_color = "green" # Green color for positive
|
|
|
|
|
113 |
|
114 |
# Store the result for the category
|
115 |
category_results[label].append({
|
|
|
106 |
sentiment_label = "NEGATIVE"
|
107 |
sentiment_icon = "π" # Thumbs-down icon for negative
|
108 |
sentiment_color = "red" # Red color for negative
|
109 |
+
elif raw_label == "LABEL_1":
|
110 |
sentiment_label = "POSITIVE"
|
111 |
sentiment_icon = "π" # Thumbs-up icon for positive
|
112 |
sentiment_color = "green" # Green color for positive
|
113 |
+
else:
|
114 |
+
sentiment_label = raw_label # Fallback in case of unexpected label
|
115 |
|
116 |
# Store the result for the category
|
117 |
category_results[label].append({
|