Spaces:
Running
Running
siddhantuniyal
commited on
Commit
•
ab650c6
1
Parent(s):
41e6737
feat: change profanityFound syntax
Browse files
app.py
CHANGED
@@ -45,7 +45,7 @@ def predict(image):
|
|
45 |
api_name="/predict"
|
46 |
)
|
47 |
|
48 |
-
profanityFound = [word for word in
|
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 {
|