multimodalart HF staff commited on
Commit
edb56d6
1 Parent(s): b47a127

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -28,7 +28,7 @@ def infer(prompt, negative_prompt, seed, randomize_seed, width, height, guidance
28
  generator = torch.Generator().manual_seed(seed)
29
  pipe.unload_lora_weights()
30
 
31
- if lora_model is not None:
32
  pipe.load_lora_weights(lora_model)
33
 
34
  image = pipe(
 
28
  generator = torch.Generator().manual_seed(seed)
29
  pipe.unload_lora_weights()
30
 
31
+ if lora_model:
32
  pipe.load_lora_weights(lora_model)
33
 
34
  image = pipe(