Spaces:
Build error
Build error
Update app.py
Browse files
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) =
|
| 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]
|