Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ def inference(img, lang):
|
|
19 |
im_show = draw_ocr(image, boxes, txts, scores, font_path='RightSans.ttf')
|
20 |
im_show = Image.fromarray(im_show)
|
21 |
im_show.save('result.jpg')
|
22 |
-
return 'result.jpg', result[0][1]
|
23 |
|
24 |
|
25 |
title = 'PaddleOCR'
|
|
|
19 |
im_show = draw_ocr(image, boxes, txts, scores, font_path='RightSans.ttf')
|
20 |
im_show = Image.fromarray(im_show)
|
21 |
im_show.save('result.jpg')
|
22 |
+
return 'result.jpg', result[0][1][0]
|
23 |
|
24 |
|
25 |
title = 'PaddleOCR'
|