Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -242,7 +242,7 @@ def extract_problem_domains(df, text_column='Problem_Description', cluster_range
|
|
242 |
|
243 |
|
244 |
# BERTopic for topic modelling
|
245 |
-
topic_model = BERTopic(
|
246 |
topics, _ = topic_model.fit_transform(df[text_column].tolist())
|
247 |
|
248 |
|
|
|
242 |
|
243 |
|
244 |
# BERTopic for topic modelling
|
245 |
+
topic_model = BERTopic(num_topics=optimal_n_clusters)
|
246 |
topics, _ = topic_model.fit_transform(df[text_column].tolist())
|
247 |
|
248 |
|