Spaces:
Build error
Build error
fix: Fix variable typo from adaption
Browse files
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(
|
|
|
75 |
metric='euclidean',
|
76 |
-
cluster_selection_method='eom'
|
|
|
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)
|