Update app.py
Browse files
app.py
CHANGED
@@ -170,7 +170,7 @@ if st.button("Sentiment Analysis", type="secondary"):
|
|
170 |
fig2 = px.bar(result, x="Sentiment", y="comment_date", color="Sentiment")
|
171 |
st.plotly_chart(fig2)
|
172 |
|
173 |
-
text = " ".join(
|
174 |
stopwords = set(stopwords.words('english'))
|
175 |
text = re.sub('[^A-Za-z]+', ' ', text)
|
176 |
words = text.split()
|
|
|
170 |
fig2 = px.bar(result, x="Sentiment", y="comment_date", color="Sentiment")
|
171 |
st.plotly_chart(fig2)
|
172 |
|
173 |
+
text = " ".join(comment for comment in df['Comment'])
|
174 |
stopwords = set(stopwords.words('english'))
|
175 |
text = re.sub('[^A-Za-z]+', ' ', text)
|
176 |
words = text.split()
|