siddhantuniyal commited on
Commit
ab650c6
1 Parent(s): 41e6737

feat: change profanityFound syntax

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -45,7 +45,7 @@ def predict(image):
45
  api_name="/predict"
46
  )
47
 
48
- profanityFound = [word for word in profanity_hn if word in ocr_text[:200].split()]
49
 
50
  if len(profanityFound) > 0:
51
  return {
 
45
  api_name="/predict"
46
  )
47
 
48
+ profanityFound = [word for word in ocr_text.split() if word in profanity_hn]
49
 
50
  if len(profanityFound) > 0:
51
  return {