Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ def draw_boxes(image, bounds, color='yellow', width=2):
|
|
22 |
return image
|
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)
|
|
|
22 |
return image
|
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)
|