Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -187,7 +187,7 @@ def main(file, num_clusters_to_display):
|
|
| 187 |
bar_chart_img = generate_bar_chart(filtered_df, num_clusters_to_display)
|
| 188 |
|
| 189 |
with tempfile.NamedTemporaryFile(delete=False, suffix=".csv") as tmpfile:
|
| 190 |
-
filtered_df.to_csv(tmpfile.name, index=False)
|
| 191 |
csv_file_path = tmpfile.name
|
| 192 |
|
| 193 |
return csv_file_path, wordcloud_img, bar_chart_img
|
|
|
|
| 187 |
bar_chart_img = generate_bar_chart(filtered_df, num_clusters_to_display)
|
| 188 |
|
| 189 |
with tempfile.NamedTemporaryFile(delete=False, suffix=".csv") as tmpfile:
|
| 190 |
+
filtered_df.to_csv(tmpfile.name, index=False)
|
| 191 |
csv_file_path = tmpfile.name
|
| 192 |
|
| 193 |
return csv_file_path, wordcloud_img, bar_chart_img
|