green commited on
Commit
4fb9800
·
1 Parent(s): 570b5ec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -231,8 +231,8 @@ choices.insert(0,'None')
231
 
232
 
233
  st.sidebar.subheader("Topics")
234
- show_clusters = clusters
235
- show_clusters.sort(key=lambda x: len(clusters[x]))
236
  for i in list(clusters.keys()):
237
  st.sidebar.write(f"{i} : {len(clusters[i])}")
238
 
 
231
 
232
 
233
  st.sidebar.subheader("Topics")
234
+ show_clusters = list(clusters.items())
235
+ show_clusters.sort(key=lambda x: len(x[1]))
236
  for i in list(clusters.keys()):
237
  st.sidebar.write(f"{i} : {len(clusters[i])}")
238