SonFox2920 commited on
Commit
029bf0e
·
verified ·
1 Parent(s): 7cbb26b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -58,9 +58,9 @@ def load_model():
58
 
59
  def preprocess_image(image):
60
  """Preprocess the uploaded image"""
61
- # Convert to RGB if needed
62
- if image.mode != 'RGB':
63
- image = image.convert('RGB')
64
 
65
  # Convert to numpy array
66
  img_array = np.array(image)
 
58
 
59
  def preprocess_image(image):
60
  """Preprocess the uploaded image"""
61
+ # # Convert to RGB if needed
62
+ # if image.mode != 'RGB':
63
+ # image = image.convert('RGB')
64
 
65
  # Convert to numpy array
66
  img_array = np.array(image)