Keltezaa commited on
Commit
092c739
·
verified ·
1 Parent(s): d9a2fbb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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
- pipe_to_use = image
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,