multimodalart HF staff commited on
Commit
91f39f9
β€’
1 Parent(s): c24886c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -144,11 +144,11 @@ def update_selection(selected_state: gr.SelectData, sdxl_loras, face_strength, i
144
 
145
  for lora_list in lora_defaults:
146
  if lora_list["model"] == sdxl_loras[selected_state.index]["repo"]:
147
- face_strength = lora_list.get("face_strength", face_strength)
148
- image_strength = lora_list.get("image_strength", image_strength)
149
- weight = lora_list.get("weight", weight)
150
- depth_control_scale = lora_list.get("depth_control_scale", depth_control_scale)
151
- negative = lora_list.get("negative", negative)
152
 
153
  if(is_new):
154
  if(selected_state.index == 0):
 
144
 
145
  for lora_list in lora_defaults:
146
  if lora_list["model"] == sdxl_loras[selected_state.index]["repo"]:
147
+ face_strength = lora_list.get("face_strength", 0.85)
148
+ image_strength = lora_list.get("image_strength", 0.15)
149
+ weight = lora_list.get("weight", 0.9)
150
+ depth_control_scale = lora_list.get("depth_control_scale", 0.8)
151
+ negative = lora_list.get("negative", "")
152
 
153
  if(is_new):
154
  if(selected_state.index == 0):