jiuface commited on
Commit
b8ec07c
·
verified ·
1 Parent(s): 126eefb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -118,6 +118,7 @@ def run_lora(prompt, lora_strings_json, cfg_scale, steps, randomize_seed, seed,
118
  gr.Info("Start to load loras ...")
119
  pipe.unload_lora_weights()
120
  lora_configs = None
 
121
  if lora_strings_json:
122
  try:
123
  lora_configs = json.loads(lora_strings_json)
@@ -127,7 +128,7 @@ def run_lora(prompt, lora_strings_json, cfg_scale, steps, randomize_seed, seed,
127
 
128
  if lora_configs:
129
  with calculateDuration("Loading LoRA weights"):
130
- adapter_names = []
131
  adapter_weights = []
132
  for lora_info in lora_configs:
133
  lora_repo = lora_info.get("repo")
 
118
  gr.Info("Start to load loras ...")
119
  pipe.unload_lora_weights()
120
  lora_configs = None
121
+ adapter_names = []
122
  if lora_strings_json:
123
  try:
124
  lora_configs = json.loads(lora_strings_json)
 
128
 
129
  if lora_configs:
130
  with calculateDuration("Loading LoRA weights"):
131
+
132
  adapter_weights = []
133
  for lora_info in lora_configs:
134
  lora_repo = lora_info.get("repo")