Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -164,7 +164,7 @@ def imsize(img, max_size=512, maintain_aspect_ratio=True):
|
|
164 |
|
165 |
|
166 |
def rem_glass(input_img):
|
167 |
-
w_0, h_0 = input_img.size
|
168 |
#resizing
|
169 |
im = imsize(input_img, max_size=512, maintain_aspect_ratio=True)
|
170 |
|
@@ -190,7 +190,7 @@ def rem_glass(input_img):
|
|
190 |
# img = upscale(img, model_cran_v2)
|
191 |
|
192 |
# scale image to original size
|
193 |
-
img = img.resize((
|
194 |
img.save("removal.png")
|
195 |
|
196 |
inference_app(
|
|
|
164 |
|
165 |
|
166 |
def rem_glass(input_img):
|
167 |
+
# w_0, h_0 = input_img.size
|
168 |
#resizing
|
169 |
im = imsize(input_img, max_size=512, maintain_aspect_ratio=True)
|
170 |
|
|
|
190 |
# img = upscale(img, model_cran_v2)
|
191 |
|
192 |
# scale image to original size
|
193 |
+
img = img.resize((width, height))
|
194 |
img.save("removal.png")
|
195 |
|
196 |
inference_app(
|