Spaces:
Runtime error
Runtime error
Alpha version
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ model = from_pretrained_keras("Dvjc1899/super-resolution")
|
|
12 |
|
13 |
def infer(image):
|
14 |
img = Image.fromarray(image)
|
15 |
-
img =
|
16 |
ycbcr = img.convert("YCbCr")
|
17 |
y, cb, cr = ycbcr.split()
|
18 |
y = img_to_array(y)
|
|
|
12 |
|
13 |
def infer(image):
|
14 |
img = Image.fromarray(image)
|
15 |
+
img = img.resize((100,100))
|
16 |
ycbcr = img.convert("YCbCr")
|
17 |
y, cb, cr = ycbcr.split()
|
18 |
y = img_to_array(y)
|