Spaces:
Runtime error
Runtime error
Commit
•
a2e707c
1
Parent(s):
42e544b
Update app.py
Browse files
app.py
CHANGED
@@ -49,8 +49,8 @@ def inference(img, lang):
|
|
49 |
mask = cv.imread('mask.png',0)
|
50 |
dst = cv.inpaint(img,mask,3,cv.INPAINT_TELEA)
|
51 |
#img_inpainted = cv2.inpaint(im, mask, 7, cv2.INPAINT_TELEA)
|
52 |
-
|
53 |
-
return ['result.jpg', 'mask.png', 'dst.
|
54 |
|
55 |
title = 'EasyOCR'
|
56 |
description = 'Gradio demo for EasyOCR. EasyOCR demo supports 80+ languages.To use it, simply upload your image and choose a language from the dropdown menu, or click one of the examples to load them. Read more at the links below.'
|
|
|
49 |
mask = cv.imread('mask.png',0)
|
50 |
dst = cv.inpaint(img,mask,3,cv.INPAINT_TELEA)
|
51 |
#img_inpainted = cv2.inpaint(im, mask, 7, cv2.INPAINT_TELEA)
|
52 |
+
cv2.imwrite('dst.png', dst)
|
53 |
+
return ['result.jpg', 'mask.png', 'dst.png', pd.DataFrame(bounds). iloc[: , 1:2]]
|
54 |
|
55 |
title = 'EasyOCR'
|
56 |
description = 'Gradio demo for EasyOCR. EasyOCR demo supports 80+ languages.To use it, simply upload your image and choose a language from the dropdown menu, or click one of the examples to load them. Read more at the links below.'
|