Update app.py
Browse files
app.py
CHANGED
@@ -367,8 +367,7 @@ def run_lora(prompt, cfg_scale, steps, selected_indices, lora_scale_1, lora_scal
|
|
367 |
lora_path = lora['repo']
|
368 |
weight_name = lora.get("weights")
|
369 |
print(f"Lora Path: {lora_path}")
|
370 |
-
|
371 |
-
pipe_to_use.load_lora_weights(
|
372 |
lora_path,
|
373 |
weight_name=weight_name if weight_name else None,
|
374 |
low_cpu_mem_usage=True,
|
|
|
367 |
lora_path = lora['repo']
|
368 |
weight_name = lora.get("weights")
|
369 |
print(f"Lora Path: {lora_path}")
|
370 |
+
pipe.load_lora_weights(
|
|
|
371 |
lora_path,
|
372 |
weight_name=weight_name if weight_name else None,
|
373 |
low_cpu_mem_usage=True,
|