Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ def draw_boxes(image, bounds, color='yellow', width=2):
|
|
24 |
def inference(img, lang):
|
25 |
reader = easyocr.Reader(lang)
|
26 |
bounds = reader.readtext(img)
|
27 |
-
im = PIL.Image.open(img
|
28 |
draw_boxes(im, bounds)
|
29 |
im.save('result.jpg')
|
30 |
return ['result.jpg', pd.DataFrame(bounds).iloc[: , 1:]]
|
|
|
24 |
def inference(img, lang):
|
25 |
reader = easyocr.Reader(lang)
|
26 |
bounds = reader.readtext(img)
|
27 |
+
im = PIL.Image.open(img)
|
28 |
draw_boxes(im, bounds)
|
29 |
im.save('result.jpg')
|
30 |
return ['result.jpg', pd.DataFrame(bounds).iloc[: , 1:]]
|