User1342 commited on
Commit
cbacfb2
·
1 Parent(s): 676d090

Update app.py

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