Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -855,7 +855,7 @@ def _censor_me(self, p, safer=0.0005):
|
|
| 855 |
except Exception as e:
|
| 856 |
max_key = 0
|
| 857 |
|
| 858 |
-
sum_value = sum(v1.values())
|
| 859 |
#
|
| 860 |
v1["is_safer_flagged"] = False
|
| 861 |
if (max_value >= safer):
|
|
|
|
| 855 |
except Exception as e:
|
| 856 |
max_key = 0
|
| 857 |
|
| 858 |
+
sum_value = sum(value for value in v1.values() if value is not None)
|
| 859 |
#
|
| 860 |
v1["is_safer_flagged"] = False
|
| 861 |
if (max_value >= safer):
|