Update app.py
Browse files
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
|
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 |
|