Tirath5504 commited on
Commit
e16a35a
·
verified ·
1 Parent(s): b1b57c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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