aagoluoglu commited on
Commit
0169272
·
verified ·
1 Parent(s): 6a56578

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -239,8 +239,8 @@ def server(input: Inputs, output: Outputs, session: Session):
239
  # Extract the image data
240
  #image_data = image.cpu().detach().numpy()
241
 
242
- # Get the dimensions of the original image
243
- height, width = image.shape[:2]
244
 
245
  # Plot the first image on the left
246
  axes[0].imshow(image)
 
239
  # Extract the image data
240
  #image_data = image.cpu().detach().numpy()
241
 
242
+ # Get the dimensions (width and height) of the image
243
+ width, height = image.size
244
 
245
  # Plot the first image on the left
246
  axes[0].imshow(image)