Spaces:
Runtime error
Runtime error
Update appStore/sdg_analysis.py
Browse files- appStore/sdg_analysis.py +5 -2
appStore/sdg_analysis.py
CHANGED
|
@@ -93,13 +93,16 @@ def app():
|
|
| 93 |
|
| 94 |
# Create and generate a word cloud image:
|
| 95 |
text = ' '.join([str(word) for word in df["Keyword/Keyphrase"]])
|
| 96 |
-
|
|
|
|
|
|
|
| 97 |
|
| 98 |
# Display the generated image:
|
| 99 |
plt.imshow(wordcloud, interpolation='bilinear')
|
| 100 |
plt.axis("off")
|
| 101 |
-
plt.show()
|
| 102 |
st.pyplot()
|
|
|
|
| 103 |
df.index += 1
|
| 104 |
|
| 105 |
# Add styling
|
|
|
|
| 93 |
|
| 94 |
# Create and generate a word cloud image:
|
| 95 |
text = ' '.join([str(word) for word in df["Keyword/Keyphrase"]])
|
| 96 |
+
|
| 97 |
+
wordcloud = WordCloud(background_color="white", colormap="hot", max_words=max_word, random_state=random).generate(text)
|
| 98 |
+
|
| 99 |
|
| 100 |
# Display the generated image:
|
| 101 |
plt.imshow(wordcloud, interpolation='bilinear')
|
| 102 |
plt.axis("off")
|
| 103 |
+
#plt.show()
|
| 104 |
st.pyplot()
|
| 105 |
+
|
| 106 |
df.index += 1
|
| 107 |
|
| 108 |
# Add styling
|