Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -337,13 +337,13 @@ with gr.Tab("Image Filters"):
|
|
337 |
inputs=[image_input, filter_type],
|
338 |
outputs=image_output
|
339 |
)
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
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 |
|