Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -155,7 +155,7 @@ def run_lora(prompt, negative_prompt, cfg_scale, steps, selected_index, seed, wi
|
|
| 155 |
pipe.load_lora_weights(lora_path, weight_name=selected_lora["weights"], adapter_name=selected_lora["repo"], adapter_weights=[lora_scale])
|
| 156 |
else:
|
| 157 |
pipe.load_lora_weights("ostris/OpenFLUX.1", weight_name="openflux1-v0.1.0-fast-lora.safetensors", adapter_weights=[1.0])
|
| 158 |
-
pipe.load_lora_weights(lora_path, adapter_name=selected_lora["repo"], adapter_weights=lora_scale)
|
| 159 |
|
| 160 |
image = generate_image(prompt, negative_prompt, steps, seed, cfg_scale, width, height, lora_scale)
|
| 161 |
pipe.to("cpu")
|
|
|
|
| 155 |
pipe.load_lora_weights(lora_path, weight_name=selected_lora["weights"], adapter_name=selected_lora["repo"], adapter_weights=[lora_scale])
|
| 156 |
else:
|
| 157 |
pipe.load_lora_weights("ostris/OpenFLUX.1", weight_name="openflux1-v0.1.0-fast-lora.safetensors", adapter_weights=[1.0])
|
| 158 |
+
pipe.load_lora_weights(lora_path, adapter_name=selected_lora["repo"], adapter_weights=[lora_scale])
|
| 159 |
|
| 160 |
image = generate_image(prompt, negative_prompt, steps, seed, cfg_scale, width, height, lora_scale)
|
| 161 |
pipe.to("cpu")
|