Spaces:
Running
Running
root
commited on
Commit
·
77e1f1c
1
Parent(s):
cd03287
add img choice
Browse files- ui_functions.py +2 -1
ui_functions.py
CHANGED
|
@@ -11,7 +11,8 @@ def change_img_choices(sample_size):
|
|
| 11 |
choices.append(
|
| 12 |
'图片{}(img_{})'.format(i+1,i+1)
|
| 13 |
)
|
| 14 |
-
|
|
|
|
| 15 |
|
| 16 |
def change_image_editor_mode(choice, cropped_image, masked_image, resize_mode, width, height):
|
| 17 |
if choice == "Mask":
|
|
|
|
| 11 |
choices.append(
|
| 12 |
'图片{}(img_{})'.format(i+1,i+1)
|
| 13 |
)
|
| 14 |
+
update_choices = gr.update(choices=choices)
|
| 15 |
+
return update_choices
|
| 16 |
|
| 17 |
def change_image_editor_mode(choice, cropped_image, masked_image, resize_mode, width, height):
|
| 18 |
if choice == "Mask":
|