Spaces:
Runtime error
Runtime error
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")(
|
| 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):
|