Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -140,8 +140,8 @@ def main():
|
|
140 |
# Word Cloud for Complaint Description
|
141 |
with col2:
|
142 |
text = " ".join(complaints_df['complaint_description'])
|
143 |
-
wordcloud = WordCloud(background_color='white', width=800, height=
|
144 |
-
plt.figure(figsize=(8,
|
145 |
plt.imshow(wordcloud, interpolation='bilinear')
|
146 |
plt.axis('off')
|
147 |
st.pyplot(plt)
|
|
|
140 |
# Word Cloud for Complaint Description
|
141 |
with col2:
|
142 |
text = " ".join(complaints_df['complaint_description'])
|
143 |
+
wordcloud = WordCloud(background_color='white', width=800, height=800).generate(text)
|
144 |
+
plt.figure(figsize=(8, 8))
|
145 |
plt.imshow(wordcloud, interpolation='bilinear')
|
146 |
plt.axis('off')
|
147 |
st.pyplot(plt)
|