Update gui.py
Browse files
gui.py
CHANGED
|
@@ -604,7 +604,7 @@ def create_interface():
|
|
| 604 |
info=i18n("matchering_info")
|
| 605 |
)
|
| 606 |
|
| 607 |
-
with gr.Group(visible=False) as auto_matchering_settings_group:
|
| 608 |
auto_matchering_passes = gr.Slider(
|
| 609 |
label=i18n("matchering_passes"),
|
| 610 |
minimum=1,
|
|
@@ -626,7 +626,7 @@ def create_interface():
|
|
| 626 |
selected_models = gr.Dropdown(
|
| 627 |
label=i18n("selected_models"),
|
| 628 |
choices=update_model_dropdown(i18n(initial_settings["auto_category"]), favorites=initial_favorites)["choices"],
|
| 629 |
-
value=initial_settings["selected_models"] or [],
|
| 630 |
multiselect=True
|
| 631 |
)
|
| 632 |
|
|
@@ -649,8 +649,6 @@ def create_interface():
|
|
| 649 |
refresh_presets_btn = gr.Button(i18n("refresh_presets"), variant="secondary", scale=0)
|
| 650 |
|
| 651 |
with gr.Group():
|
| 652 |
-
ensemble_settings растения
|
| 653 |
-
|
| 654 |
ensemble_settings_header = gr.Markdown(f"### {i18n('ensemble_settings')}")
|
| 655 |
with gr.Row():
|
| 656 |
auto_ensemble_type = gr.Dropdown(
|
|
@@ -882,7 +880,7 @@ def create_interface():
|
|
| 882 |
"matchering_passes": args[15],
|
| 883 |
"model_category": args[16],
|
| 884 |
"selected_model": cleaned_model,
|
| 885 |
-
"auto_ensemble_type": args[17]
|
| 886 |
}
|
| 887 |
save_config(load_config()["favorites"], settings, load_config()["presets"])
|
| 888 |
modified_args = list(args)
|
|
|
|
| 604 |
info=i18n("matchering_info")
|
| 605 |
)
|
| 606 |
|
| 607 |
+
with gr.Group(visible=False) as auto_matchering_settings_group:
|
| 608 |
auto_matchering_passes = gr.Slider(
|
| 609 |
label=i18n("matchering_passes"),
|
| 610 |
minimum=1,
|
|
|
|
| 626 |
selected_models = gr.Dropdown(
|
| 627 |
label=i18n("selected_models"),
|
| 628 |
choices=update_model_dropdown(i18n(initial_settings["auto_category"]), favorites=initial_favorites)["choices"],
|
| 629 |
+
value=initial_settings["selected_models"] or [],
|
| 630 |
multiselect=True
|
| 631 |
)
|
| 632 |
|
|
|
|
| 649 |
refresh_presets_btn = gr.Button(i18n("refresh_presets"), variant="secondary", scale=0)
|
| 650 |
|
| 651 |
with gr.Group():
|
|
|
|
|
|
|
| 652 |
ensemble_settings_header = gr.Markdown(f"### {i18n('ensemble_settings')}")
|
| 653 |
with gr.Row():
|
| 654 |
auto_ensemble_type = gr.Dropdown(
|
|
|
|
| 880 |
"matchering_passes": args[15],
|
| 881 |
"model_category": args[16],
|
| 882 |
"selected_model": cleaned_model,
|
| 883 |
+
"auto_ensemble_type": args[17]
|
| 884 |
}
|
| 885 |
save_config(load_config()["favorites"], settings, load_config()["presets"])
|
| 886 |
modified_args = list(args)
|