Spaces:
Runtime error
Runtime error
debu das
commited on
Commit
•
8344c73
1
Parent(s):
5602b78
Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ def ocr(img,lang):
|
|
32 |
st.text(txts)
|
33 |
scores = [line[1][1] for line in result]
|
34 |
st.text(scores)
|
35 |
-
im_show = draw_ocr(image, boxes, txts, scores, font_path='
|
36 |
im_show = Image.fromarray(im_show)
|
37 |
st.image(im_show, caption='ocr output')
|
38 |
#im_show.save('result.jpg')
|
|
|
32 |
st.text(txts)
|
33 |
scores = [line[1][1] for line in result]
|
34 |
st.text(scores)
|
35 |
+
im_show = draw_ocr(image, boxes, txts, scores, font_path='./simfang.ttf')
|
36 |
im_show = Image.fromarray(im_show)
|
37 |
st.image(im_show, caption='ocr output')
|
38 |
#im_show.save('result.jpg')
|