Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -247,10 +247,12 @@ def server(input: Inputs, output: Outputs, session: Session):
|
|
247 |
axes[0].set_title("Image")
|
248 |
|
249 |
# Plot the probability map on the right
|
|
|
250 |
axes[1].imshow(prob, extent=(0, width, height, 0)) # Setting extent to match original image dimensions
|
251 |
axes[1].set_title("Probability Map")
|
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 |
|
|
|
247 |
axes[0].set_title("Image")
|
248 |
|
249 |
# Plot the probability map on the right
|
250 |
+
prob = prob[:height, :width]
|
251 |
axes[1].imshow(prob, extent=(0, width, height, 0)) # Setting extent to match original image dimensions
|
252 |
axes[1].set_title("Probability Map")
|
253 |
|
254 |
# Plot the prediction image on the right
|
255 |
+
prediction = prediction[:height, :width]
|
256 |
axes[2].imshow(prediction, extent=(0, width, height, 0)) # Setting extent to match original image dimensions
|
257 |
axes[2].set_title("Prediction")
|
258 |
|