Spaces:
Build error
Build error
fix: Balance min_cluster_size for less topics
Browse files
app.py
CHANGED
@@ -70,7 +70,7 @@ def generate_plot(
|
|
70 |
embeddings = embed_text(df, model)
|
71 |
# encoded_labels = encode_labels(labels)
|
72 |
cluster = hdbscan.HDBSCAN(
|
73 |
-
min_cluster_size=
|
74 |
metric='euclidean',
|
75 |
cluster_selection_method='eom'
|
76 |
).fit(embeddings)
|
|
|
70 |
embeddings = embed_text(df, model)
|
71 |
# encoded_labels = encode_labels(labels)
|
72 |
cluster = hdbscan.HDBSCAN(
|
73 |
+
min_cluster_size=5,
|
74 |
metric='euclidean',
|
75 |
cluster_selection_method='eom'
|
76 |
).fit(embeddings)
|