Spaces:
Sleeping
Sleeping
Added EDI
Browse files
app.py
CHANGED
|
@@ -23,6 +23,7 @@ import numpy as np
|
|
| 23 |
|
| 24 |
def edge_directed_interpolation(lr_img_pil, scale=2):
|
| 25 |
# Ensure input is a PIL Image
|
|
|
|
| 26 |
if isinstance(lr_img_pil, np.ndarray):
|
| 27 |
lr_img_pil = Image.fromarray(lr_img_pil)
|
| 28 |
|
|
|
|
| 23 |
|
| 24 |
def edge_directed_interpolation(lr_img_pil, scale=2):
|
| 25 |
# Ensure input is a PIL Image
|
| 26 |
+
|
| 27 |
if isinstance(lr_img_pil, np.ndarray):
|
| 28 |
lr_img_pil = Image.fromarray(lr_img_pil)
|
| 29 |
|