Fiqa commited on
Commit
2e8a68a
·
verified ·
1 Parent(s): 0c3147e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)