Spaces:
Runtime error
Runtime error
Update app.py
Browse files200 unmodified lines2012022032042042052062071 unmodified line209210211212212213214215200 unmodified lines if "threshold" in user: # old type of dataset being used, only 'violent' data available if "Violent" in dataset: if user["threshold"] >= threshold: if user["threshold"]/2 >= threshold:
user_id = str(user["username"]) if block_user(user_id, user, "Violent - old dataset"):1 unmodified line else: # modern dataset being used if "Violent" in dataset: if user["violence-threshold"] >= threshold: if user["violence-threshold"]/2 >= threshold: user_id = str(user["username"]) if block_user(user_id, user, "Violent"): num_users_blocked = num_users_blocked + 1app.py+2-2