AlekseyCalvin commited on
Commit
b6b5eac
·
verified ·
1 Parent(s): 0e739bf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -130,13 +130,12 @@ def generate_image(prompt, negative_prompt, width, height, steps, seed, lora_sca
130
  ).images[0]
131
  return image
132
 
133
- def run_lora(prompt, negative_prompt, lora_scale, cfg_scale, steps, selected_index, seed, width, height):
134
  if negative_prompt == "":
135
  negative_prompt = None
136
  if selected_index is None:
137
  raise gr.Error("Select a LoRA adapter square before proceeding.")
138
 
139
- selected_lora = loras[selected_index]
140
  lora_path = selected_lora["repo"]
141
 
142
  # Load LoRA weights
 
130
  ).images[0]
131
  return image
132
 
133
+ def run_lora(prompt, negative_prompt, lora_scale, cfg_scale, steps, selected_lora, seed, width, height):
134
  if negative_prompt == "":
135
  negative_prompt = None
136
  if selected_index is None:
137
  raise gr.Error("Select a LoRA adapter square before proceeding.")
138
 
 
139
  lora_path = selected_lora["repo"]
140
 
141
  # Load LoRA weights