Spaces:
Build error
Build error
Update utils.py
Browse files
utils.py
CHANGED
@@ -44,11 +44,6 @@ def split(text):
|
|
44 |
sentences = [s.strip() for s in sentences]
|
45 |
return sentences
|
46 |
|
47 |
-
# display if the sentiment value is above these thresholds
|
48 |
-
thresholds = {"joy": 0.99,"anger": 0.95,"surprise": 0.95,"sadness": 0.98,"fear": 0.95,"love": 0.99,}
|
49 |
-
|
50 |
-
color_map = {"joy": "green","anger": "red","surprise": "yellow","sadness": "blue","fear": "orange","love": "purple",}
|
51 |
-
|
52 |
def create_fig(x_min, x_max, to_plot, plot_sentences):
|
53 |
x, y = list(zip(*to_plot))
|
54 |
|
|
|
44 |
sentences = [s.strip() for s in sentences]
|
45 |
return sentences
|
46 |
|
|
|
|
|
|
|
|
|
|
|
47 |
def create_fig(x_min, x_max, to_plot, plot_sentences):
|
48 |
x, y = list(zip(*to_plot))
|
49 |
|