AlekseyCalvin commited on
Commit
b075e82
1 Parent(s): 1fa44a9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -118,8 +118,8 @@ def generate_image(prompt, negative_prompt, trigger_word, steps, seed, cfg_scale
118
  return image
119
 
120
  def run_lora(prompt, negative_prompt, cfg_scale, steps, selected_index, randomize_seed, seed, width, height, lora_scale, progress=gr.Progress(track_tqdm=True)):
121
- if negative == "":
122
- negative = None
123
  if selected_index is None:
124
  raise gr.Error("Select a LoRA adapter square before proceeding.")
125
 
 
118
  return image
119
 
120
  def run_lora(prompt, negative_prompt, cfg_scale, steps, selected_index, randomize_seed, seed, width, height, lora_scale, progress=gr.Progress(track_tqdm=True)):
121
+ if negative_prompt == "":
122
+ negative_prompt = None
123
  if selected_index is None:
124
  raise gr.Error("Select a LoRA adapter square before proceeding.")
125