Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
243 |
-
|
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)
|