Update app.py
Browse files
app.py
CHANGED
@@ -206,7 +206,7 @@ def draw_plot(pred_img, seg):
|
|
206 |
return fig
|
207 |
|
208 |
def sepia(input_img):
|
209 |
-
img = cv2.imread(input_img)
|
210 |
img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
|
211 |
img_batch = np.expand_dims(img, axis=0)
|
212 |
|
|
|
206 |
return fig
|
207 |
|
208 |
def sepia(input_img):
|
209 |
+
img = cv2.imread(input_img).astype(np.float32)
|
210 |
img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
|
211 |
img_batch = np.expand_dims(img, axis=0)
|
212 |
|