Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -246,18 +246,18 @@ def server(input: Inputs, output: Outputs, session: Session):
|
|
246 |
axes[0].imshow(image)
|
247 |
axes[0].set_title("Image")
|
248 |
|
249 |
-
# Plot the probability map on the right
|
250 |
-
axes[1].imshow(prob)
|
251 |
-
axes[1].set_title("Probability Map")
|
252 |
|
253 |
-
# Plot the prediction image on the right
|
254 |
-
axes[2].imshow(prediction)
|
255 |
-
axes[2].set_title("Prediction")
|
256 |
|
257 |
-
# Plot the predicted mask on the right
|
258 |
-
axes[3].imshow(image)
|
259 |
-
show_mask(prediction, axes[3])
|
260 |
-
axes[3].set_title("Predicted Mask")
|
261 |
|
262 |
# Hide axis ticks and labels
|
263 |
for ax in axes:
|
|
|
246 |
axes[0].imshow(image)
|
247 |
axes[0].set_title("Image")
|
248 |
|
249 |
+
# # Plot the probability map on the right
|
250 |
+
# axes[1].imshow(prob)
|
251 |
+
# axes[1].set_title("Probability Map")
|
252 |
|
253 |
+
# # Plot the prediction image on the right
|
254 |
+
# axes[2].imshow(prediction)
|
255 |
+
# axes[2].set_title("Prediction")
|
256 |
|
257 |
+
# # Plot the predicted mask on the right
|
258 |
+
# axes[3].imshow(image)
|
259 |
+
# show_mask(prediction, axes[3])
|
260 |
+
# axes[3].set_title("Predicted Mask")
|
261 |
|
262 |
# Hide axis ticks and labels
|
263 |
for ax in axes:
|