givkashi commited on
Commit
435bf26
·
1 Parent(s): 79d5442

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -15,10 +15,11 @@ if not os.path.exists("results"):
15
  def infer(img):
16
  #img = ImageOps.contain(img, (700, 700))
17
  width, height = img.size
18
- res=np.ones_like(img.size)
19
  print(res.shape)
20
  print(width)
21
  img.save("./data/data.png")
 
22
  os.system('python main_test_swinir.py')
23
  res=Image.open("./results/data.png")
24
  return res
 
15
  def infer(img):
16
  #img = ImageOps.contain(img, (700, 700))
17
  width, height = img.size
18
+ res=np.ones_like((width, height,3))
19
  print(res.shape)
20
  print(width)
21
  img.save("./data/data.png")
22
+ img.save("./results/data.png")
23
  os.system('python main_test_swinir.py')
24
  res=Image.open("./results/data.png")
25
  return res