User1342 commited on
Commit
faf4d33
·
1 Parent(s): 4bcdd61

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -435,7 +435,7 @@ def button_pressed(text_box):
435
  elif total_average_neg_sentiment > 0.9 and total_average_neg_sentiment > total_average_pos_sentiment:
436
  text = text + " '{} is experiencing a significantly high amount of negative sentiment content.".format(text_box)
437
 
438
- if len(text) =- len(original_text):
439
  text = text + " No excessive hate speech or low sentiment was observed in @{}'s mentions or timeline".format(text_box)
440
 
441
  return [toxicity_plot_fig, sentiment_plot_fig, fig, text]
 
435
  elif total_average_neg_sentiment > 0.9 and total_average_neg_sentiment > total_average_pos_sentiment:
436
  text = text + " '{} is experiencing a significantly high amount of negative sentiment content.".format(text_box)
437
 
438
+ if len(text) == len(original_text):
439
  text = text + " No excessive hate speech or low sentiment was observed in @{}'s mentions or timeline".format(text_box)
440
 
441
  return [toxicity_plot_fig, sentiment_plot_fig, fig, text]