sab commited on
Commit
fffabea
·
1 Parent(s): 9c91605
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -28,6 +28,7 @@ def process(image):
28
  def numpy_to_pil(image):
29
  """Convert a numpy array to a PIL Image."""
30
  if not isinstance(image, np.ndarray):
 
31
  raise TypeError("Input must be a numpy array")
32
 
33
  # Determine the mode based on the shape and dtype of the image
 
28
  def numpy_to_pil(image):
29
  """Convert a numpy array to a PIL Image."""
30
  if not isinstance(image, np.ndarray):
31
+ print(f"Type of input: {type(image)}")
32
  raise TypeError("Input must be a numpy array")
33
 
34
  # Determine the mode based on the shape and dtype of the image