Update app.py
Browse files
app.py
CHANGED
@@ -46,7 +46,7 @@ def generate_caption_and_image(image):
|
|
46 |
# reader = easyocr.Reader(['en'])
|
47 |
# result = reader.readtext(img)
|
48 |
import random
|
49 |
-
reader = easyocr.Reader(['ur', 'eng'])
|
50 |
|
51 |
# Read text from an image
|
52 |
result = reader.readtext(img)
|
|
|
46 |
# reader = easyocr.Reader(['en'])
|
47 |
# result = reader.readtext(img)
|
48 |
import random
|
49 |
+
reader = easyocr.Reader(['ur', 'eng'], gpu =False)
|
50 |
|
51 |
# Read text from an image
|
52 |
result = reader.readtext(img)
|