Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -345,7 +345,7 @@ with gr.Blocks(theme=theme, css=css) as app:
|
|
345 |
with gr.Column():
|
346 |
def upscale_image(input_image, radio_input):
|
347 |
upscale_factor = radio_input
|
348 |
-
output_image = cv2.resize(input_image, None, fx = upscale_factor, fy = upscale_factor, interpolation = cv2.INTER_CUBIC)
|
349 |
return output_image
|
350 |
|
351 |
radio_input = gr.Radio(label="Upscale Levels", choices=[2, 4, 6, 8, 10], value=2)
|
|
|
345 |
with gr.Column():
|
346 |
def upscale_image(input_image, radio_input):
|
347 |
upscale_factor = radio_input
|
348 |
+
output_image = cv2.resize(input_image, None, format="png", fx = upscale_factor, fy = upscale_factor, interpolation = cv2.INTER_CUBIC)
|
349 |
return output_image
|
350 |
|
351 |
radio_input = gr.Radio(label="Upscale Levels", choices=[2, 4, 6, 8, 10], value=2)
|