Spaces:
Build error
Build error
Update app.py
Browse files
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
|
| 434 |
elif total_average_neg_sentiment > 0.9:
|
| 435 |
-
text = text + " '{} is experiencing a significantly high amount of
|
| 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 |
|