jflo commited on
Commit
51e0491
1 Parent(s): f44abcc

Updated inputs to pil format

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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':