Commit
·
893b10c
1
Parent(s):
2d24604
Update app.py
Browse files
app.py
CHANGED
@@ -68,7 +68,7 @@ def gen_pred(img, model=seg_model):
|
|
68 |
nparr = np.frombuffer(img_bytes, np.byte)
|
69 |
pred_pil = cv2.imdecode(nparr, cv2.IMREAD_REDUCED_COLOR_8)
|
70 |
# return "UI in developing process ..."
|
71 |
-
return
|
72 |
|
73 |
title = "<h1 style='text-align: center;'>Semantic Segmentation</h1>"
|
74 |
description = "Upload an image and get prediction mask"
|
|
|
68 |
nparr = np.frombuffer(img_bytes, np.byte)
|
69 |
pred_pil = cv2.imdecode(nparr, cv2.IMREAD_REDUCED_COLOR_8)
|
70 |
# return "UI in developing process ..."
|
71 |
+
return pred
|
72 |
|
73 |
title = "<h1 style='text-align: center;'>Semantic Segmentation</h1>"
|
74 |
description = "Upload an image and get prediction mask"
|