Skip to content

Commit 4b3d3ad

Browse files
authored
Update censor_word_detection.py
1 parent 7112524 commit 4b3d3ad

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Censor word detection/censor_word_detection.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@
22

33
def detect(data):
44
try:
5-
'''profanity.censor(data) will print **** '''
6-
'''profanity.censor(data,'#') will print #### if censor word it detected; else it will print data you have entered '''
75
output=profanity.censor(data,'#')
86
print(output)
97
except Exception as e:
108
print(e)
119

1210
profanity.load_censor_words()
1311
data = input("enter your msg:")
14-
detect(data)
12+
detect(data)

0 commit comments

Comments
 (0)