AlekseyCalvin commited on
Commit
2c44eac
·
verified ·
1 Parent(s): a10dcba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -140,7 +140,7 @@ def run_lora(prompt, negative_prompt, cfg_scale, steps, selected_index, randomiz
140
  # Load LoRA weights
141
  with calculateDuration(f"Loading LoRA weights for {selected_lora['title']}"):
142
  if "weights" in selected_lora:
143
- pipe.load_lora_weights("ostris/OpenFLUX.1", weight_name="openflux1-v0.1.0-fast-lora.safetensors", adapter_name="fast"), adapter_weights=[1.0])
144
  pipe.load_lora_weights(lora_path, weight_name=selected_lora["weights"], adapter_name=selected_lora["repo"], adapter_weights=[lora_scale])
145
  else:
146
  pipe.load_lora_weights("ostris/OpenFLUX.1", weight_name="openflux1-v0.1.0-fast-lora.safetensors", adapter_name="fast", adapter_weights=[1.0])
 
140
  # Load LoRA weights
141
  with calculateDuration(f"Loading LoRA weights for {selected_lora['title']}"):
142
  if "weights" in selected_lora:
143
+ pipe.load_lora_weights("ostris/OpenFLUX.1", weight_name="openflux1-v0.1.0-fast-lora.safetensors", adapter_name="fast", adapter_weights=[1.0])
144
  pipe.load_lora_weights(lora_path, weight_name=selected_lora["weights"], adapter_name=selected_lora["repo"], adapter_weights=[lora_scale])
145
  else:
146
  pipe.load_lora_weights("ostris/OpenFLUX.1", weight_name="openflux1-v0.1.0-fast-lora.safetensors", adapter_name="fast", adapter_weights=[1.0])