Spaces:
Sleeping
Sleeping
File size: 463 Bytes
9567606 6ae8bb2 a8f0668 9567606 6ae8bb2 9567606 6ae8bb2 3fdadb5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
import gradio as gr
import cv2
import numpy as np
def upscale_image(input_image):
# Увеличиваем размер изображения в 2 раза
upscale_factor = 2
output_image = cv2.resize(input_image, None, fx = upscale_factor, fy = upscale_factor, interpolation = cv2.INTER_CUBIC)
return output_image
# Создаем интерфейс Gradio
iface = gr.Interface(fn=upscale_image, inputs="image", outputs="image")
iface.launch() |