SamDaLamb commited on
Commit
59656ef
·
verified ·
1 Parent(s): 5ff0a7b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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 {type(image)}")
 
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)