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