Spaces:
Runtime error
Runtime error
liuyizhang
commited on
Commit
•
3f5ffbb
1
Parent(s):
e94be43
update app.py
Browse files
app.py
CHANGED
@@ -534,8 +534,7 @@ def run_anything_task(input_image, text_prompt, task_type, inpaint_prompt, box_t
|
|
534 |
input_mask_pil = input_image['mask']
|
535 |
input_mask = np.array(input_mask_pil.convert("L"))
|
536 |
|
537 |
-
|
538 |
-
if isinstance(input_image, list):
|
539 |
image_pil, image = load_image(input_image['image'].convert("RGB"))
|
540 |
input_img = input_image['image']
|
541 |
output_images.append(input_image['image'])
|
|
|
534 |
input_mask_pil = input_image['mask']
|
535 |
input_mask = np.array(input_mask_pil.convert("L"))
|
536 |
|
537 |
+
if isinstance(input_image, dict):
|
|
|
538 |
image_pil, image = load_image(input_image['image'].convert("RGB"))
|
539 |
input_img = input_image['image']
|
540 |
output_images.append(input_image['image'])
|