Skip to content

Commit

Permalink
changed empty condition
Browse files Browse the repository at this point in the history
  • Loading branch information
lauragreemko committed Oct 10, 2022
1 parent c910b83 commit 92d62d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def predict():

prediction = model.predict(df['text'])
prediction = prediction[0]
print(prediction)
if prediction == '0':
prediction = 'The sentiment of this tweet is positive'
elif prediction == '':
Expand Down

0 comments on commit 92d62d7

Please sign in to comment.