Updated inputs to pil format
Browse files
app.py
CHANGED
@@ -3,7 +3,8 @@ import numpy as np
|
|
3 |
import cv2
|
4 |
|
5 |
def filter_img(input_img,filter_type):
|
6 |
-
img = input_img
|
|
|
7 |
filtered_img = np.zeros(img.shape, dtype=int)
|
8 |
|
9 |
if filter_type == 'Vintage':
|
|
|
3 |
import cv2
|
4 |
|
5 |
def filter_img(input_img,filter_type):
|
6 |
+
img = np.array(input_img)
|
7 |
+
|
8 |
filtered_img = np.zeros(img.shape, dtype=int)
|
9 |
|
10 |
if filter_type == 'Vintage':
|