Spaces:
Running
on
T4
Running
on
T4
liuyizhang
commited on
Commit
•
b269211
1
Parent(s):
eb4fd23
update app.py
Browse files
app.py
CHANGED
@@ -661,7 +661,8 @@ def run_anything_task(input_image, text_prompt, task_type, inpaint_prompt, box_t
|
|
661 |
image_result = cv2.cvtColor(cv2.imread(image_path), cv2.COLOR_BGR2RGB)
|
662 |
os.remove(image_path)
|
663 |
logger.info(f'run_anything_task_[{file_temp}]_{task_type}_9__{type(image_inpainting)} / {type(image_result)}')
|
664 |
-
output_images.append(
|
|
|
665 |
return output_images, gr.Gallery.update(label='result images')
|
666 |
else:
|
667 |
logger.info(f"task_type:{task_type} error!")
|
|
|
661 |
image_result = cv2.cvtColor(cv2.imread(image_path), cv2.COLOR_BGR2RGB)
|
662 |
os.remove(image_path)
|
663 |
logger.info(f'run_anything_task_[{file_temp}]_{task_type}_9__{type(image_inpainting)} / {type(image_result)}')
|
664 |
+
output_images.append(image_inpainting)
|
665 |
+
# output_images.append(image_result)
|
666 |
return output_images, gr.Gallery.update(label='result images')
|
667 |
else:
|
668 |
logger.info(f"task_type:{task_type} error!")
|