Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -199,7 +199,7 @@ def block_users(client, threshold, dataset):
|
|
| 199 |
else:
|
| 200 |
# modern dataset being used
|
| 201 |
if "Violent" in dataset:
|
| 202 |
-
if user["violence-threshold"] >= threshold:
|
| 203 |
user_id = str(user["username"])
|
| 204 |
block_user(user_id, user, "Violent")
|
| 205 |
num_users_blocked = num_users_blocked + 1
|
|
|
|
| 199 |
else:
|
| 200 |
# modern dataset being used
|
| 201 |
if "Violent" in dataset:
|
| 202 |
+
if (user["violence-threshold"]/2) >= threshold:
|
| 203 |
user_id = str(user["username"])
|
| 204 |
block_user(user_id, user, "Violent")
|
| 205 |
num_users_blocked = num_users_blocked + 1
|