ash11sh commited on
Commit
854393d
β€’
1 Parent(s): 5fe1744

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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((w_0, h_0))
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(