Spaces:
Runtime error
Runtime error
Commit
·
836753b
1
Parent(s):
70c976f
V2-Liste_MAP_Stat_11
Browse files- __pycache__/statistiques.cpython-312.pyc +0 -0
- requirements.txt +2 -1
- statistiques.py +2 -2
__pycache__/statistiques.cpython-312.pyc
CHANGED
|
Binary files a/__pycache__/statistiques.cpython-312.pyc and b/__pycache__/statistiques.cpython-312.pyc differ
|
|
|
requirements.txt
CHANGED
|
@@ -6,4 +6,5 @@ streamlit-folium
|
|
| 6 |
transformers
|
| 7 |
torch
|
| 8 |
torchvision
|
| 9 |
-
torchaudio
|
|
|
|
|
|
| 6 |
transformers
|
| 7 |
torch
|
| 8 |
torchvision
|
| 9 |
+
torchaudio
|
| 10 |
+
wordcloud
|
statistiques.py
CHANGED
|
@@ -27,7 +27,7 @@ def display_rse_actions_wordcloud(df):
|
|
| 27 |
st.title("Cartographie des Actions RSE")
|
| 28 |
|
| 29 |
# Définir les mots à exclure
|
| 30 |
-
custom_stopwords = set(["nous", "du", "notre", "de", "et", "est", "pour", "le", "une", "se", "en", "au", "à", "que", "sont", "leur", "son"])
|
| 31 |
|
| 32 |
# Ajouter vos mots à exclure aux stop words par défaut de wordcloud
|
| 33 |
stopwords = STOPWORDS.union(custom_stopwords)
|
|
@@ -43,7 +43,7 @@ def display_rse_actions_wordcloud(df):
|
|
| 43 |
ax.imshow(wordcloud, interpolation='bilinear')
|
| 44 |
ax.axis('off')
|
| 45 |
st.pyplot(fig)
|
| 46 |
-
|
| 47 |
|
| 48 |
def main():
|
| 49 |
st.title("Statistiques sur les entreprises engagées RSE")
|
|
|
|
| 27 |
st.title("Cartographie des Actions RSE")
|
| 28 |
|
| 29 |
# Définir les mots à exclure
|
| 30 |
+
custom_stopwords = set(["la", "un", "avons", "par", "c'est", "s'est", "aussi", "leurs", "d'un", "nos", "les", "sur", "ses", "tous", "nous", "du", "notre", "de", "et", "est", "pour", "le", "une", "se", "en", "au", "à", "que", "sont", "leur", "son"])
|
| 31 |
|
| 32 |
# Ajouter vos mots à exclure aux stop words par défaut de wordcloud
|
| 33 |
stopwords = STOPWORDS.union(custom_stopwords)
|
|
|
|
| 43 |
ax.imshow(wordcloud, interpolation='bilinear')
|
| 44 |
ax.axis('off')
|
| 45 |
st.pyplot(fig)
|
| 46 |
+
|
| 47 |
|
| 48 |
def main():
|
| 49 |
st.title("Statistiques sur les entreprises engagées RSE")
|