Spaces:
Runtime error
Runtime error
Tirath5504
commited on
Commit
•
bc4cf8f
1
Parent(s):
0a84fda
Update app.py
Browse files
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(
|
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):
|