multimodalart HF staff commited on
Commit
fd8e800
β€’
1 Parent(s): 3c5ded1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -60,10 +60,10 @@ def run_lora(prompt, cfg_scale, steps, selected_index, randomize_seed, seed, wid
60
  joint_attention_kwargs={"scale": lora_scale},
61
  ).images[0]
62
 
63
- # Unload LoRA weights
 
64
  pipe.unload_lora_weights()
65
-
66
- return image
67
 
68
  '''
69
  #gen_column{height: 100%}
 
60
  joint_attention_kwargs={"scale": lora_scale},
61
  ).images[0]
62
 
63
+ yield image
64
+
65
  pipe.unload_lora_weights()
66
+
 
67
 
68
  '''
69
  #gen_column{height: 100%}