Spaces:
Runtime error
Runtime error
EnzoBustos
commited on
Commit
·
7b53a4e
1
Parent(s):
68d461f
adding images
Browse files- Images/Basic Materials.png +0 -0
- Images/Communications.png +0 -0
- Images/Cyclic Consumption.png +0 -0
- Images/Financial.png +0 -0
- Images/Health.png +0 -0
- Images/Industrial Goods.png +0 -0
- Images/Information Technology.png +0 -0
- Images/Non-cyclical Consumption.png +0 -0
- Biofuels.png +0 -0
- Images/Others.png +0 -0
- Images/Public utility.png +0 -0
- Images/teste.txt +0 -0
- app.py +5 -0
Images/Basic Materials.png
ADDED
Images/Communications.png
ADDED
Images/Cyclic Consumption.png
ADDED
Images/Financial.png
ADDED
Images/Health.png
ADDED
Images/Industrial Goods.png
ADDED
Images/Information Technology.png
ADDED
Images/Non-cyclical Consumption.png
ADDED
Biofuels.png
RENAMED
File without changes
|
Images/Others.png
ADDED
Images/Public utility.png
ADDED
Images/teste.txt
DELETED
File without changes
|
app.py
CHANGED
@@ -6,6 +6,7 @@ from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer
|
|
6 |
import os
|
7 |
import re
|
8 |
import pandas as pd
|
|
|
9 |
|
10 |
def translate_text_blob(text):
|
11 |
blob = TextBlob(text)
|
@@ -181,4 +182,8 @@ with analysis:
|
|
181 |
"Non-cyclical Consumption",
|
182 |
"Basic Materials",
|
183 |
))
|
|
|
|
|
|
|
|
|
184 |
|
|
|
6 |
import os
|
7 |
import re
|
8 |
import pandas as pd
|
9 |
+
from PIL import Image
|
10 |
|
11 |
def translate_text_blob(text):
|
12 |
blob = TextBlob(text)
|
|
|
182 |
"Non-cyclical Consumption",
|
183 |
"Basic Materials",
|
184 |
))
|
185 |
+
|
186 |
+
with analysis_2:
|
187 |
+
image = Image.open('Images/{}.png'.format(wordcloud))
|
188 |
+
st.image(image, caption='WordCloud dos textos classificados como {}'.format(wordcloud))
|
189 |
|