Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -21,11 +21,11 @@ transform_image = transforms.Compose(
|
|
21 |
)
|
22 |
|
23 |
def fn(image):
|
|
|
24 |
im = load_img(image, output_type="pil")
|
25 |
im = im.convert("RGB")
|
26 |
origin = im.copy()
|
27 |
-
image = process(im)
|
28 |
-
image_path = process_file(f)
|
29 |
return (image, origin), image_path
|
30 |
|
31 |
@spaces.GPU
|
|
|
21 |
)
|
22 |
|
23 |
def fn(image):
|
24 |
+
image_path = process_file(image)
|
25 |
im = load_img(image, output_type="pil")
|
26 |
im = im.convert("RGB")
|
27 |
origin = im.copy()
|
28 |
+
image = process(im)
|
|
|
29 |
return (image, origin), image_path
|
30 |
|
31 |
@spaces.GPU
|