Python
fixed extract settings crash
DeepBeepMeepd239ceb22725
diff --git a/shared/utils/loras_mutipliers.py b/shared/utils/loras_mutipliers.pyindex 5e024a9..dda8056 100644--- a/shared/utils/loras_mutipliers.py+++ b/shared/utils/loras_mutipliers.py@@ -9,7 +9,7 @@ def preparse_loras_multipliers(loras_multipliers):loras_mult_choices_list = loras_multipliers.replace("\r", "").split("\n")loras_mult_choices_list = [multi.strip() for multi in loras_mult_choices_list if len(multi)>0 and not multi.startswith("#")]loras_multipliers = " ".join(loras_mult_choices_list)- return loras_multipliers.replace("|"," ").split(" ")+ return loras_multipliers.replace("|"," ").strip().split(" ")def expand_slist(slists_dict, mult_no, num_inference_steps, model_switch_step, model_switch_step2 ):def expand_one(slist, num_inference_steps):diff --git a/wgp.py b/wgp.pyindex c0b4982..3bc3e54 100644--- a/wgp.py+++ b/wgp.py@@ -6636,13 +6636,13 @@ def use_video_settings(state, input_file_list, choice):else:gr.Info(f"Settings Loaded from Video with prompt '{prompt[:100]}'")if models_compatible:- return gr.update(), gr.update(), str(time.time())+ return gr.update(), gr.update(), gr.update(), str(time.time())else:return *generate_dropdown_model_list(model_type), gr.update()else:gr.Info(f"No Video is Selected")- return gr.update(), gr.update()+ return gr.update(), gr.update(), gr.update(), gr.update()loras_url_cache = Nonedef update_loras_url_cache(lora_dir, loras_selected):if loras_selected is None: return None