Spaces:
Runtime error
Runtime error
File size: 276 Bytes
87854ee |
1 2 3 4 5 6 7 8 |
import gradio as gr
import cv2
import numpy as np
def upscale_image(input_image, radio_input):
upscale_factor = radio_input
output_image = cv2.resize(input_image, None, fx = upscale_factor, fy = upscale_factor, interpolation = cv2.INTER_CUBIC)
return output_image |