Spaces:
Runtime error
Runtime error
Update main.py
Browse files
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 [
|
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 |
|