DigiP-AI commited on
Commit
cca76bc
·
verified ·
1 Parent(s): 0494175

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -337,13 +337,13 @@ with gr.Tab("Image Filters"):
337
  inputs=[image_input, filter_type],
338
  outputs=image_output
339
  )
340
- with gr.Tab("Image Upscaler"):
341
- with gr.Row():
342
- with gr.Column():
343
- def upscale_image(input_image, radio_input):
344
- upscale_factor = radio_input
345
- output_image = cv2.resize(input_image, None, fx = upscale_factor, fy = upscale_factor, interpolation = cv2.INTER_CUBIC)
346
- return output_image
347
 
348
  radio_input = gr.Radio(label="Upscale Levels", choices=[2, 4, 6, 8, 10], value=2)
349
 
 
337
  inputs=[image_input, filter_type],
338
  outputs=image_output
339
  )
340
+ with gr.Tab("Image Upscaler"):
341
+ with gr.Row():
342
+ with gr.Column():
343
+ def upscale_image(input_image, radio_input):
344
+ upscale_factor = radio_input
345
+ output_image = cv2.resize(input_image, None, fx = upscale_factor, fy = upscale_factor, interpolation = cv2.INTER_CUBIC)
346
+ return output_image
347
 
348
  radio_input = gr.Radio(label="Upscale Levels", choices=[2, 4, 6, 8, 10], value=2)
349