Spaces:
Build error
Build error
feat: Lowering min cluster size to help create more interesting topics
Browse files
app.py
CHANGED
@@ -71,7 +71,7 @@ def generate_plot(
|
|
71 |
embeddings = embed_text(tws, model)
|
72 |
# encoded_labels = encode_labels(labels)
|
73 |
cluster = hdbscan.HDBSCAN(
|
74 |
-
min_cluster_size=
|
75 |
metric='euclidean',
|
76 |
cluster_selection_method='eom'
|
77 |
).fit(embeddings)
|
|
|
71 |
embeddings = embed_text(tws, model)
|
72 |
# encoded_labels = encode_labels(labels)
|
73 |
cluster = hdbscan.HDBSCAN(
|
74 |
+
min_cluster_size=3,
|
75 |
metric='euclidean',
|
76 |
cluster_selection_method='eom'
|
77 |
).fit(embeddings)
|