Spaces:
Runtime error
Runtime error
Commit
•
8eab7a1
1
Parent(s):
93107a1
Update app.py
Browse files
app.py
CHANGED
@@ -42,14 +42,13 @@ def inference(img, lang):
|
|
42 |
#mask = PIL.Image.open(img.name)
|
43 |
mask = Image.new("L", im.size, 0)
|
44 |
draw_mask(mask, bounds)
|
45 |
-
|
46 |
-
final = masking(im, mask)
|
47 |
#img_inpainted = cv2.inpaint(im, mask, 7, cv2.INPAINT_NS)
|
48 |
#remove_text(im, mask, bounds)
|
49 |
lang = ""
|
50 |
im.save('result.jpg')
|
51 |
mask.save('mask.png')
|
52 |
-
final.save('final.png')
|
53 |
#img_inpainted.save('inpaint.jpg')
|
54 |
#dst = cv.inpaint(img,mask,3,cv.INPAINT_TELEA)
|
55 |
#img_inpainted = cv2.inpaint(im, mask, 7, cv2.INPAINT_TELEA)
|
|
|
42 |
#mask = PIL.Image.open(img.name)
|
43 |
mask = Image.new("L", im.size, 0)
|
44 |
draw_mask(mask, bounds)
|
45 |
+
masking(im, mask)
|
|
|
46 |
#img_inpainted = cv2.inpaint(im, mask, 7, cv2.INPAINT_NS)
|
47 |
#remove_text(im, mask, bounds)
|
48 |
lang = ""
|
49 |
im.save('result.jpg')
|
50 |
mask.save('mask.png')
|
51 |
+
#final.save('final.png')
|
52 |
#img_inpainted.save('inpaint.jpg')
|
53 |
#dst = cv.inpaint(img,mask,3,cv.INPAINT_TELEA)
|
54 |
#img_inpainted = cv2.inpaint(im, mask, 7, cv2.INPAINT_TELEA)
|