Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -355,8 +355,8 @@ def extract_problem_domains(df,
|
|
| 355 |
|
| 356 |
try:
|
| 357 |
center = kmeans.cluster_centers_[i]
|
| 358 |
-
|
| 359 |
-
|
| 360 |
|
| 361 |
if isinstance(center, np.ndarray) and center.ndim == 1:
|
| 362 |
top_word_indices = center.argsort()[-top_words:][::-1]
|
|
|
|
| 355 |
|
| 356 |
try:
|
| 357 |
center = kmeans.cluster_centers_[i]
|
| 358 |
+
console_messages.append(f"Processing cluster {i}")
|
| 359 |
+
console_messages.append(f"Center shape: {center.shape}, type: {type(center)}")
|
| 360 |
|
| 361 |
if isinstance(center, np.ndarray) and center.ndim == 1:
|
| 362 |
top_word_indices = center.argsort()[-top_words:][::-1]
|