DeepLearning101 commited on
Commit
80d8ed6
1 Parent(s): 456e5c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -29,7 +29,7 @@ def inference(img_path):
29
  boxes = [line[0] for line in result]
30
  txts = [line[1][0] if line[1] else '' for line in result] # 確保在無文字時 txts 還是個空字串
31
  scores = [line[1][1] for line in result]
32
- im_show_pil = draw_ocr(image, boxes, txts, scores, font_path="./doc/simfang.ttf")
33
 
34
  return im_show_pil, "\n".join(txts)
35
 
 
29
  boxes = [line[0] for line in result]
30
  txts = [line[1][0] if line[1] else '' for line in result] # 確保在無文字時 txts 還是個空字串
31
  scores = [line[1][1] for line in result]
32
+ im_show_pil = draw_ocr(image, boxes, txts, scores, font_path="./simfang.ttf")
33
 
34
  return im_show_pil, "\n".join(txts)
35