Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ upsampler = RealESRGANer(
|
|
22 |
def upsample(image):
|
23 |
# image = np.array(image)
|
24 |
image = image[:, :, ::-1] # RGB -> BGR
|
25 |
-
image, _ =
|
26 |
image = image[:, :, ::-1] # BGR -> RGB
|
27 |
image = Image.fromarray(image)
|
28 |
return image
|
|
|
22 |
def upsample(image):
|
23 |
# image = np.array(image)
|
24 |
image = image[:, :, ::-1] # RGB -> BGR
|
25 |
+
image, _ = upsampler.enhance(image, outscale=4)
|
26 |
image = image[:, :, ::-1] # BGR -> RGB
|
27 |
image = Image.fromarray(image)
|
28 |
return image
|