User1342 commited on
Commit
542cf41
·
1 Parent(s): ba0ee9c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -428,9 +428,9 @@ def button_pressed(text_box):
428
 
429
  text = text[:len(text - 1)] + " language."
430
 
431
- if total_average_neg_sentiment > 0.7:
432
  text = text + " @{} is experiencing a high amount of negative sentiment content.".format(text_box)
433
- elif total_average_neg_sentiment > 0.9:
434
  text = text + " '{} is experiencing a significantly high amount of negative sentiment content.".format(text_box)
435
 
436
  return [toxicity_plot_fig, sentiment_plot_fig, fig, text]
 
428
 
429
  text = text[:len(text - 1)] + " language."
430
 
431
+ if total_average_neg_sentiment > 0.7 and total_average_neg_sentiment > total_average_pos_sentiment:
432
  text = text + " @{} is experiencing a high amount of negative sentiment content.".format(text_box)
433
+ elif total_average_neg_sentiment > 0.9 and total_average_neg_sentiment > total_average_pos_sentiment:
434
  text = text + " '{} is experiencing a significantly high amount of negative sentiment content.".format(text_box)
435
 
436
  return [toxicity_plot_fig, sentiment_plot_fig, fig, text]