aagoluoglu commited on
Commit
6363ff4
·
verified ·
1 Parent(s): 422cf41

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -247,13 +247,10 @@ def server(input: Inputs, output: Outputs, session: Session):
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_im = Image.fromarray(prediction)
256
- prediction_im = prediction_im.crop((0,0,width,height))
257
  axes[2].imshow(prediction_im, extent=(0, width, height, 0)) # Setting extent to match original image dimensions
258
  axes[2].set_title("Prediction")
259
 
 
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(f"Probability Map {prob.shape}")
252
 
253
  # Plot the prediction image on the right
 
 
254
  axes[2].imshow(prediction_im, extent=(0, width, height, 0)) # Setting extent to match original image dimensions
255
  axes[2].set_title("Prediction")
256