Spaces:
Runtime error
Runtime error
Commit
·
0c6cfc6
1
Parent(s):
8d74e2f
Update app.py
Browse files
app.py
CHANGED
@@ -27,8 +27,8 @@ def inference(img, lang):
|
|
27 |
im = PIL.Image.open(img.name)
|
28 |
draw_boxes(im, bounds)
|
29 |
im.save('result.jpg')
|
30 |
-
print(pd.DataFrame(bounds).iloc[: , 1:].to_string)
|
31 |
-
return ['result.jpg', pd.DataFrame(bounds).iloc[: , 1:].to_string(header=False, index=False)]
|
32 |
|
33 |
|
34 |
title = 'EasyOCR'
|
|
|
27 |
im = PIL.Image.open(img.name)
|
28 |
draw_boxes(im, bounds)
|
29 |
im.save('result.jpg')
|
30 |
+
print(pd.DataFrame(bounds).iloc[: , 1:2].to_string)
|
31 |
+
return ['result.jpg', pd.DataFrame(bounds).iloc[: , 1:2].to_string(header=False, index=False)]
|
32 |
|
33 |
|
34 |
title = 'EasyOCR'
|