Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -79,7 +79,7 @@ def index():
|
|
79 |
|
80 |
umap_df, min_eps, max_eps = clustering.transform_embeddings(comments_df, embeddings_col="embeddings")
|
81 |
|
82 |
-
log_message("Generaci贸n de
|
83 |
image_path = os.path.join("static", "wordcloud.png")
|
84 |
clustering.plot_wordcloud(comments_df, text_column="comment", output_filename=image_path)
|
85 |
|
@@ -91,7 +91,6 @@ def index():
|
|
91 |
umap_df, min_eps, max_eps, n=10, embeddings_col="embeddings"
|
92 |
)
|
93 |
|
94 |
-
log_message(f"Clusters assignments {cluster_assignments}")
|
95 |
log_message("Creaci贸n de gr谩fico de Sankey")
|
96 |
labels, source, target, values, comments = clustering.build_sankey_data(
|
97 |
cluster_assignments, cluster_counts, most_similar_comments, min_items_by_cluster=min_items_by_cluster
|
|
|
79 |
|
80 |
umap_df, min_eps, max_eps = clustering.transform_embeddings(comments_df, embeddings_col="embeddings")
|
81 |
|
82 |
+
log_message("Generaci贸n de Wordcloud")
|
83 |
image_path = os.path.join("static", "wordcloud.png")
|
84 |
clustering.plot_wordcloud(comments_df, text_column="comment", output_filename=image_path)
|
85 |
|
|
|
91 |
umap_df, min_eps, max_eps, n=10, embeddings_col="embeddings"
|
92 |
)
|
93 |
|
|
|
94 |
log_message("Creaci贸n de gr谩fico de Sankey")
|
95 |
labels, source, target, values, comments = clustering.build_sankey_data(
|
96 |
cluster_assignments, cluster_counts, most_similar_comments, min_items_by_cluster=min_items_by_cluster
|