Tirath5504 commited on
Commit
bc4cf8f
1 Parent(s): 0a84fda

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -12,7 +12,7 @@ profanity_hn = profanity_df['profanity_hn']
12
 
13
  def extract_text(image):
14
  reader = easyocr.Reader(['en'])
15
- result = reader.readtext('/content/hatehinglishimg.jpg', detail=0)
16
  return " ".join(result)
17
 
18
  def predict(image):
 
12
 
13
  def extract_text(image):
14
  reader = easyocr.Reader(['en'])
15
+ result = reader.readtext(image, detail=0)
16
  return " ".join(result)
17
 
18
  def predict(image):