Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -118,7 +118,7 @@ def predict(classification_mode, image):
|
|
118 |
percentage_affected = round((pixels_count[1]/960)*100, 1)
|
119 |
percentage_affected = str(percentage_affected) + '%'
|
120 |
|
121 |
-
seg_img = PIL.Image.fromarray(seg_img)
|
122 |
|
123 |
return ({labels[i]: float(probs[i]) for i in range(len(labels))}, seg_img, percentage_affected)
|
124 |
|
|
|
118 |
percentage_affected = round((pixels_count[1]/960)*100, 1)
|
119 |
percentage_affected = str(percentage_affected) + '%'
|
120 |
|
121 |
+
#seg_img = PIL.Image.fromarray(seg_img)
|
122 |
|
123 |
return ({labels[i]: float(probs[i]) for i in range(len(labels))}, seg_img, percentage_affected)
|
124 |
|