Spaces:
Runtime error
Runtime error
ehristoforu
commited on
Commit
·
a76354d
1
Parent(s):
5b1b9e7
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
import cv2
|
3 |
import numpy as np
|
4 |
|
5 |
-
def upscale_image(input_image):
|
6 |
# Увеличиваем размер изображения в 2 раза
|
7 |
upscale_factor = radio_input
|
8 |
output_image = cv2.resize(input_image, None, fx = upscale_factor, fy = upscale_factor, interpolation = cv2.INTER_CUBIC)
|
|
|
2 |
import cv2
|
3 |
import numpy as np
|
4 |
|
5 |
+
def upscale_image(input_image, radio_input):
|
6 |
# Увеличиваем размер изображения в 2 раза
|
7 |
upscale_factor = radio_input
|
8 |
output_image = cv2.resize(input_image, None, fx = upscale_factor, fy = upscale_factor, interpolation = cv2.INTER_CUBIC)
|