ysharma HF Staff commited on
Commit
cef3711
·
1 Parent(s): 5fb46b9
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -13,8 +13,9 @@ def get_lama(img1, img2):
13
  Img2 = cv2.imread(img2) #Image.open(img2)
14
  img1_pil = Image.fromarray(Img1)
15
  img2_pil = Image.fromarray(Img2)
16
- img, mask = gr.Interface.load(name="spaces/CVPR/lama-example")(img1_pil, img2_pil, "automatic (U2net)")
17
  #TypeError: expected str, bytes or os.PathLike object, not JpegImageFile
 
18
  return img
19
 
20
  #def txt_fun(txt1, txt2):
 
13
  Img2 = cv2.imread(img2) #Image.open(img2)
14
  img1_pil = Image.fromarray(Img1)
15
  img2_pil = Image.fromarray(Img2)
16
+ img, mask = gr.Interface.load(name="spaces/CVPR/lama-example")(img1, img2, "automatic (U2net)")
17
  #TypeError: expected str, bytes or os.PathLike object, not JpegImageFile
18
+ #TypeError: expected str, bytes or os.PathLike object, not Image
19
  return img
20
 
21
  #def txt_fun(txt1, txt2):