Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -76,18 +76,18 @@ def generate_wordcloud(df):
|
|
| 76 |
text = " ".join(df['texts'].tolist())
|
| 77 |
stopwords = set(STOPWORDS)
|
| 78 |
wordcloud = WordCloud(
|
| 79 |
-
width=
|
| 80 |
-
height=
|
| 81 |
background_color='white',
|
| 82 |
max_words=300,
|
| 83 |
collocations=False,
|
| 84 |
-
min_font_size=
|
| 85 |
-
max_font_size=
|
| 86 |
stopwords=stopwords,
|
| 87 |
prefer_horizontal=1.0,
|
| 88 |
-
scale=
|
| 89 |
-
|
| 90 |
-
|
| 91 |
).generate(text)
|
| 92 |
|
| 93 |
plt.figure(figsize=(15, 7))
|
|
|
|
| 76 |
text = " ".join(df['texts'].tolist())
|
| 77 |
stopwords = set(STOPWORDS)
|
| 78 |
wordcloud = WordCloud(
|
| 79 |
+
width=800,
|
| 80 |
+
height=400,
|
| 81 |
background_color='white',
|
| 82 |
max_words=300,
|
| 83 |
collocations=False,
|
| 84 |
+
min_font_size=10,
|
| 85 |
+
max_font_size=200,
|
| 86 |
stopwords=stopwords,
|
| 87 |
prefer_horizontal=1.0,
|
| 88 |
+
scale=2,
|
| 89 |
+
relative_scaling=0.5,
|
| 90 |
+
random_state=42
|
| 91 |
).generate(text)
|
| 92 |
|
| 93 |
plt.figure(figsize=(15, 7))
|