Skip to content

Commit

Permalink
added quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
lauragreemko committed Oct 9, 2022
1 parent 035fc85 commit cbc7d09
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ def predict():

prediction = model.predict(df['text'])
prediction = prediction[0]
# if prediction == 0:
# prediction = 'The sentiment of this tweet is positive'
# else:
# prediction = 'The sentiment of this tweet is negative'
if prediction == '0':
prediction = 'The sentiment of this tweet is positive'
else:
prediction = 'The sentiment of this tweet is negative'
return render_template('predict.html', predict=prediction)

if __name__ == '__main__':
Expand Down

0 comments on commit cbc7d09

Please sign in to comment.