Spaces:
Sleeping
Sleeping
hayleybale2
commited on
Commit
•
591c594
1
Parent(s):
ac68cdf
Update app.py
Browse files
app.py
CHANGED
@@ -58,7 +58,7 @@ def resize(img):
|
|
58 |
img = img.resize((wsize,hsize), Image.ANTIALIAS)
|
59 |
w = img.size[0]
|
60 |
h = img.size[1]"""
|
61 |
-
img = img.crop((0, 0,
|
62 |
|
63 |
return img
|
64 |
|
@@ -148,4 +148,3 @@ examples=[['LR.png','Ref.png']]
|
|
148 |
|
149 |
## interface
|
150 |
gr.Interface(inference, [gr.inputs.Image(type="pil"), gr.inputs.Image(type="pil")], gr.outputs.Image(type="file"),title=title,description=description,article=article,theme ="peach",examples=examples).launch(enable_queue=True)
|
151 |
-
|
|
|
58 |
img = img.resize((wsize,hsize), Image.ANTIALIAS)
|
59 |
w = img.size[0]
|
60 |
h = img.size[1]"""
|
61 |
+
img = img.crop((0, 0, img.size[0] - (img.size[0] % 8), img.size[1] - (img.size[1] % 8)))
|
62 |
|
63 |
return img
|
64 |
|
|
|
148 |
|
149 |
## interface
|
150 |
gr.Interface(inference, [gr.inputs.Image(type="pil"), gr.inputs.Image(type="pil")], gr.outputs.Image(type="file"),title=title,description=description,article=article,theme ="peach",examples=examples).launch(enable_queue=True)
|
|