ecarbo commited on
Commit
9a99e8b
1 Parent(s): 6c689dc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -16,7 +16,7 @@ def inference(img, lang):
16
  boxes = [line[0] for line in result]
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, 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]
 
16
  boxes = [line[0] for line in result]
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, font_path='Roboto-Light.ttf')
20
  im_show = Image.fromarray(im_show)
21
  im_show.save('result.jpg')
22
  return 'result.jpg', result[0][1][0]