diff --git a/app.py b/app.py index 4389d30a..91421c58 100644 --- a/app.py +++ b/app.py @@ -355,7 +355,7 @@ def load_description(fp): ) matting_model_options = gr.Dropdown( choices=matting_model_list, - label="Matting Model", + label="抠图模型", value="modnet_photographic_portrait_matting", elem_id="matting_model", ) @@ -482,6 +482,7 @@ def change_language(language): choices=image_kb_CN, value="不设置", ), + matting_model_options: gr.update(label="抠图模型"), custom_image_kb_size: gr.update(label="KB 大小"), notification: gr.update(label="状态"), img_output_standard: gr.update(label="标准照"), @@ -518,6 +519,7 @@ def change_language(language): choices=image_kb_EN, value="Not Set", ), + matting_model_options: gr.update(label="Matting model"), custom_image_kb_size: gr.update(label="KB size"), notification: gr.update(label="Status"), img_output_standard: gr.update(label="Standard photo"), @@ -574,6 +576,7 @@ def change_image_kb(image_kb_option): img_but, render_options, image_kb_options, + matting_model_options, custom_image_kb_size, notification, img_output_standard,