nlpblogs commited on
Commit
17947ff
·
verified ·
1 Parent(s): c9e876c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(review for review in df['Review'])
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()