wilmerags commited on
Commit
20c61de
1 Parent(s): 7964bf4

fix: Fix variable typo from adaption

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -71,9 +71,11 @@ def generate_plot(
71
  with st.spinner(text="Embedding text..."):
72
  embeddings = embed_text(df, model)
73
  # encoded_labels = encode_labels(labels)
74
- cluster = hdbscan.HDBSCAN(min_cluster_size=10,
 
75
  metric='euclidean',
76
- cluster_selection_method='eom').fit(umap_embeddings)
 
77
  encoded_labels = cluster.labels_
78
  with st.spinner("Reducing dimensionality..."):
79
  embeddings_2d = get_tsne_embeddings(embeddings)
 
71
  with st.spinner(text="Embedding text..."):
72
  embeddings = embed_text(df, model)
73
  # encoded_labels = encode_labels(labels)
74
+ cluster = hdbscan.HDBSCAN(
75
+ min_cluster_size=10,
76
  metric='euclidean',
77
+ cluster_selection_method='eom'
78
+ ).fit(embeddings)
79
  encoded_labels = cluster.labels_
80
  with st.spinner("Reducing dimensionality..."):
81
  embeddings_2d = get_tsne_embeddings(embeddings)