m7mdal7aj commited on
Commit
1850f1d
1 Parent(s): 6a338ab

Update my_model/state_manager.py

Browse files
Files changed (1) hide show
  1. my_model/state_manager.py +3 -1
my_model/state_manager.py CHANGED
@@ -269,11 +269,13 @@ class StateManager:
269
  Returns:
270
  Image.Image: The resized PIL Image object.
271
  """
272
- self.col2.write(type(image_input))
273
  if isinstance(image_input, str):
 
274
  # Open the image from a file path
275
  image = Image.open(image_input)
276
  elif isinstance(image_input, Image.Image):
 
277
  # Use the image directly if it's already a PIL Image object
278
  image = image_input
279
  else:
 
269
  Returns:
270
  Image.Image: The resized PIL Image object.
271
  """
272
+
273
  if isinstance(image_input, str):
274
+ self.col2.write("str")
275
  # Open the image from a file path
276
  image = Image.open(image_input)
277
  elif isinstance(image_input, Image.Image):
278
+ self.col2.write("Image")
279
  # Use the image directly if it's already a PIL Image object
280
  image = image_input
281
  else: