Spaces:
Runtime error
Runtime error
Commit
β’
3c5ded1
1
Parent(s):
02302e4
Update app.py
Browse files
app.py
CHANGED
@@ -43,11 +43,6 @@ def run_lora(prompt, cfg_scale, steps, selected_index, randomize_seed, seed, wid
|
|
43 |
pipe.load_lora_weights(lora_path, weight_name=selected_lora["weights"])
|
44 |
else:
|
45 |
pipe.load_lora_weights(lora_path)
|
46 |
-
|
47 |
-
if "custom_alpha" in selected_lora:
|
48 |
-
pipe.load_lora_into_transformer = load_lora_into_transformer_patched
|
49 |
-
else:
|
50 |
-
pipe.load_lora_into_transformer = original_load_lora
|
51 |
|
52 |
# Set random seed for reproducibility
|
53 |
if randomize_seed:
|
|
|
43 |
pipe.load_lora_weights(lora_path, weight_name=selected_lora["weights"])
|
44 |
else:
|
45 |
pipe.load_lora_weights(lora_path)
|
|
|
|
|
|
|
|
|
|
|
46 |
|
47 |
# Set random seed for reproducibility
|
48 |
if randomize_seed:
|