Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -27,6 +27,7 @@ def fn(image):
|
|
| 27 |
im = load_img(image, output_type="pil")
|
| 28 |
im = im.convert("RGB")
|
| 29 |
image_size = im.size
|
|
|
|
| 30 |
input_images = transform_image(im).unsqueeze(0).to("cpu")
|
| 31 |
|
| 32 |
with torch.no_grad():
|
|
@@ -48,6 +49,7 @@ def fn_url(url):
|
|
| 48 |
im = load_img(url, output_type="pil")
|
| 49 |
im = im.convert("RGB")
|
| 50 |
image_size = im.size
|
|
|
|
| 51 |
input_images = transform_image(im).unsqueeze(0).to("cpu")
|
| 52 |
|
| 53 |
with torch.no_grad():
|
|
|
|
| 27 |
im = load_img(image, output_type="pil")
|
| 28 |
im = im.convert("RGB")
|
| 29 |
image_size = im.size
|
| 30 |
+
origin = im.copy()
|
| 31 |
input_images = transform_image(im).unsqueeze(0).to("cpu")
|
| 32 |
|
| 33 |
with torch.no_grad():
|
|
|
|
| 49 |
im = load_img(url, output_type="pil")
|
| 50 |
im = im.convert("RGB")
|
| 51 |
image_size = im.size
|
| 52 |
+
origin = im.copy()
|
| 53 |
input_images = transform_image(im).unsqueeze(0).to("cpu")
|
| 54 |
|
| 55 |
with torch.no_grad():
|