nlpblogs commited on
Commit
1483572
·
verified ·
1 Parent(s): dc053cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -176,9 +176,9 @@ if st.button("Sentiment Analysis", type="secondary"):
176
  words = text.split()
177
  clean_text = [word for word in words if word.lower() not in stopwords_set]
178
  clean_text = ' '.join(clean_text)
179
- wc = WordCloud(width=3000, height=2000, background_color='black').generate(clean_text)
180
  fig = plt.figure(figsize=(40, 30))
181
- plt.imshow(wc, interpolation='bilinear')
182
  plt.axis('off')
183
  st.pyplot(fig)
184
 
 
176
  words = text.split()
177
  clean_text = [word for word in words if word.lower() not in stopwords_set]
178
  clean_text = ' '.join(clean_text)
179
+ wc = WordCloud(width=3000, height=2000, background_color='black', colormap='Pastel1', collocations=False).generate(clean_text)
180
  fig = plt.figure(figsize=(40, 30))
181
+ plt.imshow(wc)
182
  plt.axis('off')
183
  st.pyplot(fig)
184