AlekseyCalvin commited on
Commit
1451d75
1 Parent(s): 01e0f78

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -139,9 +139,9 @@ def run_lora(prompt, cfg_scale, steps, selected_index, randomize_seed, seed, wid
139
  pipe.load_lora_weights("ostris/OpenFLUX.1", weight_name="openflux1-v0.1.0-fast-lora.safetensors", adapter_name="fast")
140
  pipe.set_adapters(["fast", "soonr"], adapter_weights=[1.0, lora_scale])
141
  else:
142
- pipe.load_lora_weights(lora_path, adapter_name="choice")
143
  pipe.load_lora_weights("ostris/OpenFLUX.1", weight_name="openflux1-v0.1.0-fast-lora.safetensors", adapter_name="fast")
144
- pipe.set_adapters(["fast", "choice"], adapter_weights=[1.0, lora_scale])
145
 
146
  # Set random seed for reproducibility
147
  with calculateDuration("Randomizing seed"):
 
139
  pipe.load_lora_weights("ostris/OpenFLUX.1", weight_name="openflux1-v0.1.0-fast-lora.safetensors", adapter_name="fast")
140
  pipe.set_adapters(["fast", "soonr"], adapter_weights=[1.0, lora_scale])
141
  else:
142
+ pipe.load_lora_weights(lora_path, adapter_name="soonr")
143
  pipe.load_lora_weights("ostris/OpenFLUX.1", weight_name="openflux1-v0.1.0-fast-lora.safetensors", adapter_name="fast")
144
+ pipe.set_adapters(["fast", "soonr"], adapter_weights=[1.0, lora_scale])
145
 
146
  # Set random seed for reproducibility
147
  with calculateDuration("Randomizing seed"):