kotori8823 commited on
Commit
313197d
1 Parent(s): ea5103f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -7
app.py CHANGED
@@ -9,10 +9,6 @@ import math
9
 
10
 
11
  def greet(input_img, input_model_name, input_tile_mode):
12
- # if input_img.size[0] * input_img.size[1] > 256 * 256:
13
- # y = int(math.sqrt(256*256/input_img.size[0]*input_img.size[1]))
14
- # x = int(input_img.size[0]/input_img.size[1]*y)
15
- # input_img = ImageOps.fit(input_img, (x, y))
16
  input_img = np.array(input_img)
17
  if input_model_name not in model_cache:
18
  t1 = time.time()
@@ -54,7 +50,6 @@ if __name__ == '__main__':
54
  allow_screenshot=False,
55
  allow_flagging='never',
56
  examples=[['test-img.jpg', "up2x-latest-no-denoise.pth", 2]],
57
- article=
58
- '感谢大佬开源的项目<br>'
59
-
60
  iface.launch()
 
 
9
 
10
 
11
  def greet(input_img, input_model_name, input_tile_mode):
 
 
 
 
12
  input_img = np.array(input_img)
13
  if input_model_name not in model_cache:
14
  t1 = time.time()
 
50
  allow_screenshot=False,
51
  allow_flagging='never',
52
  examples=[['test-img.jpg', "up2x-latest-no-denoise.pth", 2]],
53
+ article='感谢大佬开源的项目')
 
 
54
  iface.launch()
55
+