reab5555 commited on
Commit
6cd7102
·
verified ·
1 Parent(s): 42ffe95

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -220,7 +220,7 @@ def process_and_analyze(image):
220
  try:
221
  # Handle different input types
222
  if isinstance(image, tuple):
223
- image = image[0]
224
  if isinstance(image, np.ndarray):
225
  image = Image.fromarray(image)
226
  if not isinstance(image, Image.Image):
 
220
  try:
221
  # Handle different input types
222
  if isinstance(image, tuple):
223
+ image = image[0] # Take the first element if it's a tuple
224
  if isinstance(image, np.ndarray):
225
  image = Image.fromarray(image)
226
  if not isinstance(image, Image.Image):