SarahMakk commited on
Commit
cb74933
Β·
verified Β·
1 Parent(s): 080f94f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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
- else 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
 
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({