Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -58,7 +58,8 @@ def detect_objects_in_image(image):
|
|
58 |
if isinstance(image, Image.Image):
|
59 |
orig_w, orig_h = image.size # PIL image size returns (width, height)
|
60 |
else:
|
61 |
-
raise TypeError(f"Expected a PIL Image but got
|
|
|
62 |
|
63 |
# Apply transformation
|
64 |
img_tensor = transform(image).unsqueeze(0)
|
|
|
58 |
if isinstance(image, Image.Image):
|
59 |
orig_w, orig_h = image.size # PIL image size returns (width, height)
|
60 |
else:
|
61 |
+
# raise TypeError(f"Expected a PIL Image but got ")
|
62 |
+
print(type(image))
|
63 |
|
64 |
# Apply transformation
|
65 |
img_tensor = transform(image).unsqueeze(0)
|