asalhi85 commited on
Commit
5e4d8f4
1 Parent(s): 4f1a0f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -23,7 +23,7 @@ def draw_boxes(image, bounds, color='yellow', width=2):
23
 
24
  def inference(img, lang):
25
  reader = easyocr.Reader(lang)
26
- bounds = reader.readtext(img.name)
27
  im = PIL.Image.open(img.name)
28
  draw_boxes(im, bounds)
29
  im.save('result.jpg')
 
23
 
24
  def inference(img, lang):
25
  reader = easyocr.Reader(lang)
26
+ bounds = reader.readtext(img)
27
  im = PIL.Image.open(img.name)
28
  draw_boxes(im, bounds)
29
  im.save('result.jpg')