jiuface commited on
Commit
8dd78c2
1 Parent(s): 4ad7298

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -192,8 +192,8 @@ def run_lora(prompt, image_url, lora_strings_json, image_strength, cfg_scale, s
192
  img2img.load_lora_weights(lora_repo, weight_name=weights, adapter_name=adapter_name)
193
  else:
194
  pipe.load_lora_weights(lora_repo, weight_name=weights, adapter_name=adapter_name)
195
- except ValueError as e:
196
- print(f"Attempt {attempt+1}/{retry_count} failed to load LoRA adapter: {e}")
197
 
198
  # set lora weights
199
  if len(adapter_names) > 0:
 
192
  img2img.load_lora_weights(lora_repo, weight_name=weights, adapter_name=adapter_name)
193
  else:
194
  pipe.load_lora_weights(lora_repo, weight_name=weights, adapter_name=adapter_name)
195
+ except:
196
+ print("load lora error")
197
 
198
  # set lora weights
199
  if len(adapter_names) > 0: