Spaces:
Sleeping
Sleeping
siddhantuniyal
commited on
Commit
•
9fff2e5
1
Parent(s):
bc4cf8f
Update app.py
Browse files
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 |
-
|
16 |
-
return
|
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 |
|