jgitsolutions commited on
Commit
0e94cf8
·
verified ·
1 Parent(s): 3c94a7e

Update app.py

Browse files

fixed non supported 3x mode presence - removed it for now

Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -301,7 +301,7 @@ def create_interface():
301
  upscaler = CPUUpscaler()
302
 
303
  def process_image(input_img, scale_factor):
304
- scale_map = {"2x": 2, "3x": 3, "4x": 4}
305
  scale = scale_map[scale_factor]
306
 
307
  output_img, metrics = upscaler.upscale(input_img, scale)
@@ -319,7 +319,7 @@ def create_interface():
319
  with gr.Column(scale=1):
320
  input_img = gr.Image(label="Input Image", type="pil")
321
  scale_factor = gr.Radio(
322
- ["2x", "3x", "4x"],
323
  value="2x",
324
  label="Scale Factor"
325
  )
 
301
  upscaler = CPUUpscaler()
302
 
303
  def process_image(input_img, scale_factor):
304
+ scale_map = {"2x": 2, "4x": 4}
305
  scale = scale_map[scale_factor]
306
 
307
  output_img, metrics = upscaler.upscale(input_img, scale)
 
319
  with gr.Column(scale=1):
320
  input_img = gr.Image(label="Input Image", type="pil")
321
  scale_factor = gr.Radio(
322
+ ["2x", "4x"],
323
  value="2x",
324
  label="Scale Factor"
325
  )