tanish78 commited on
Commit
1dedc7a
·
verified ·
1 Parent(s): ab778b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -75,7 +75,7 @@ def cluster_data(df, num_clusters):
75
  def generate_wordcloud(df):
76
  text = " ".join(df['texts'].tolist())
77
  stopwords = set(STOPWORDS)
78
- wordcloud = WordCloud(width=1000, height=500, background_color='white', max_words=300, collocations=False, min_font_size=5, max_font_size=100, prefer_horizontal=1.0, stopwords=stopwords).generate(text)
79
  plt.figure(figsize=(15, 7))
80
  plt.imshow(wordcloud, interpolation='bilinear')
81
  plt.axis('off')
 
75
  def generate_wordcloud(df):
76
  text = " ".join(df['texts'].tolist())
77
  stopwords = set(STOPWORDS)
78
+ wordcloud = WordCloud(width=1000, height=500, background_color='white', max_words=50, collocations=False, min_font_size=5, max_font_size=100, prefer_horizontal=1.0, stopwords=stopwords).generate(text)
79
  plt.figure(figsize=(15, 7))
80
  plt.imshow(wordcloud, interpolation='bilinear')
81
  plt.axis('off')