Skip to content

Commit

Permalink
feat: matting model en
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeyi-Lin committed Sep 6, 2024
1 parent ef1b3db commit 3187c5e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)
Expand Down Expand Up @@ -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="标准照"),
Expand Down Expand Up @@ -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"),
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 3187c5e

Please sign in to comment.