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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -176,8 +176,8 @@ 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=800, height=400, background_color='white').generate(clean_text)
180
- fig = plt.figure(figsize=(12, 6))
181
  plt.imshow(wc, interpolation='bilinear')
182
  plt.axis('off')
183
  st.pyplot(fig)
 
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)