Spaces:
Runtime error
Runtime error
Commit
·
bd4a8d7
1
Parent(s):
0384f88
add color
Browse files
app.py
CHANGED
@@ -37,6 +37,7 @@ def racism_analysis(text):
|
|
37 |
color = "+" if words[word] > 100 else None
|
38 |
colors.append((word, color))
|
39 |
|
|
|
40 |
return label, round(100 * score), colors
|
41 |
|
42 |
|
|
|
37 |
color = "+" if words[word] > 100 else None
|
38 |
colors.append((word, color))
|
39 |
|
40 |
+
print(colors)
|
41 |
return label, round(100 * score), colors
|
42 |
|
43 |
|