Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -56,7 +56,7 @@ def detect_objects_in_image(image):
|
|
56 |
print("hey")
|
57 |
image = transforms.ToPILImage()(data) # Convert tensor to PIL image
|
58 |
|
59 |
-
if isinstance(
|
60 |
print("hey2")
|
61 |
orig_w, orig_h = data.size # PIL image size returns (width, height)
|
62 |
else:
|
|
|
56 |
print("hey")
|
57 |
image = transforms.ToPILImage()(data) # Convert tensor to PIL image
|
58 |
|
59 |
+
if isinstance(data, Image.Image):
|
60 |
print("hey2")
|
61 |
orig_w, orig_h = data.size # PIL image size returns (width, height)
|
62 |
else:
|