siddhantuniyal commited on
Commit
9fff2e5
1 Parent(s): bc4cf8f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -12,8 +12,8 @@ profanity_hn = profanity_df['profanity_hn']
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):
19
 
 
12
 
13
  def extract_text(image):
14
  reader = easyocr.Reader(['en'])
15
+ data = [result[1] for result in reader.readtext(image)]
16
+ return ' '.join([l for l in data])
17
 
18
  def predict(image):
19