Update app.py
Browse files
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 |
-
|
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)
|