Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -45,9 +45,9 @@ def predict(image):
|
|
45 |
if profanityFound:
|
46 |
return ["hate", "Profanity Found"]
|
47 |
elif engResult[0] != "NEITHER":
|
48 |
-
return ["hate", engResult]
|
49 |
elif hingResult[0] != "NAG":
|
50 |
-
return ["hate", hingResult]
|
51 |
else:
|
52 |
return ["not_hate", "No hate found, yay!"]
|
53 |
|
|
|
45 |
if profanityFound:
|
46 |
return ["hate", "Profanity Found"]
|
47 |
elif engResult[0] != "NEITHER":
|
48 |
+
return ["hate", f"Result: {engResult}, Text: {ocr_text}"]
|
49 |
elif hingResult[0] != "NAG":
|
50 |
+
return ["hate", f"Result: {hingResult}, Text: {ocr_text}"]
|
51 |
else:
|
52 |
return ["not_hate", "No hate found, yay!"]
|
53 |
|