Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -251,7 +251,7 @@ def server(input: Inputs, output: Outputs, session: Session):
|
|
251 |
axes[1].set_title(f"Probability Map {prob.shape}")
|
252 |
|
253 |
# Plot the prediction image on the right
|
254 |
-
axes[2].imshow(
|
255 |
axes[2].set_title("Prediction")
|
256 |
|
257 |
# Plot the predicted mask on the right
|
|
|
251 |
axes[1].set_title(f"Probability Map {prob.shape}")
|
252 |
|
253 |
# Plot the prediction image on the right
|
254 |
+
axes[2].imshow(prediction, extent=(0, width, height, 0)) # Setting extent to match original image dimensions
|
255 |
axes[2].set_title("Prediction")
|
256 |
|
257 |
# Plot the predicted mask on the right
|