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