onursavas commited on
Commit
71dc437
1 Parent(s): 735f62b

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -37,9 +37,9 @@ def perform_ocr(img, lang):
37
  boxes = [line[0] for line in result]
38
  txts = [line[1][0] for line in result]
39
  scores = [line[1][1] for line in result]
40
- im_show = draw_ocr(image, boxes, txts, scores, font_path='fonts/simfang.ttf')
41
 
42
- return [im_show, result]
43
 
44
  demo = gr.Blocks()
45
 
 
37
  boxes = [line[0] for line in result]
38
  txts = [line[1][0] for line in result]
39
  scores = [line[1][1] for line in result]
40
+ # im_show = draw_ocr(image, boxes, txts, scores, font_path='fonts/simfang.ttf')
41
 
42
+ return [img, result]
43
 
44
  demo = gr.Blocks()
45