Spaces:
Running
on
Zero
Running
on
Zero
add pure flux support
Browse files
__pycache__/live_preview_helpers.cpython-310.pyc
CHANGED
Binary files a/__pycache__/live_preview_helpers.cpython-310.pyc and b/__pycache__/live_preview_helpers.cpython-310.pyc differ
|
|
app.py
CHANGED
@@ -99,8 +99,9 @@ def run_lora(prompt, cfg_scale, steps, lora_repo, lora_name, randomize_seed, see
|
|
99 |
pipe.unload_lora_weights()
|
100 |
|
101 |
# Load LoRA weights
|
102 |
-
|
103 |
-
|
|
|
104 |
|
105 |
# Set random seed for reproducibility
|
106 |
with calculateDuration("Randomizing seed"):
|
|
|
99 |
pipe.unload_lora_weights()
|
100 |
|
101 |
# Load LoRA weights
|
102 |
+
if lora_repo and lora_name:
|
103 |
+
with calculateDuration(f"Loading LoRA weights for {lora_repo} {lora_name}"):
|
104 |
+
pipe.load_lora_weights(lora_repo, weight_name=lora_name)
|
105 |
|
106 |
# Set random seed for reproducibility
|
107 |
with calculateDuration("Randomizing seed"):
|