yalouini commited on
Commit
9c85cdf
·
1 Parent(s): 01b57fb
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -64,8 +64,7 @@ def solve(file_obj):
64
  boxes = [line[0] for line in result]
65
  txts = [line[1][0] for line in result]
66
  scores = [line[1][1] for line in result]
67
- im_show = draw_ocr(image, boxes, txts, scores,
68
- font_path='simfang.ttf')
69
  im_show = Image.fromarray(im_show)
70
  im_show.save('result.jpg')
71
  return 'result.jpg', 'day_10.png'
 
64
  boxes = [line[0] for line in result]
65
  txts = [line[1][0] for line in result]
66
  scores = [line[1][1] for line in result]
67
+ im_show = draw_ocr(image, boxes, txts, scores)
 
68
  im_show = Image.fromarray(im_show)
69
  im_show.save('result.jpg')
70
  return 'result.jpg', 'day_10.png'