wilmerags commited on
Commit
da31fda
·
1 Parent(s): 97ec5a0

fix: Fix -1 topic comparison

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -141,7 +141,7 @@ def generate_plot(
141
  cluster_keyword = {}
142
  with st.spinner("Now trying to express them with my own words... 💬"):
143
  for label in set(encoded_labels):
144
- if label == '-1':
145
  cluster_keyword[label] = '-1'
146
  continue
147
  cluster_keyword[label] = []
 
141
  cluster_keyword = {}
142
  with st.spinner("Now trying to express them with my own words... 💬"):
143
  for label in set(encoded_labels):
144
+ if label == -1:
145
  cluster_keyword[label] = '-1'
146
  continue
147
  cluster_keyword[label] = []