Meloo commited on
Commit
815a758
1 Parent(s): 3e7576b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -118,10 +118,9 @@ def load_img(filename, norm=True):
118
  def inference(image, upscale, large_input_flag, color_fix):
119
  if upscale is None or not isinstance(upscale, (int, float)):
120
  upscale = 2
 
121
  upscale = int(upscale)
122
- if upscale > 4:
123
- upscale = 4
124
- if 0 < upscale < 3:
125
  upscale = 2
126
 
127
  model = set_safmn(upscale)
 
118
  def inference(image, upscale, large_input_flag, color_fix):
119
  if upscale is None or not isinstance(upscale, (int, float)):
120
  upscale = 2
121
+
122
  upscale = int(upscale)
123
+ if 0 < upscale < 3:
 
 
124
  upscale = 2
125
 
126
  model = set_safmn(upscale)