Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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):
|