multimodalart HF Staff commited on
Commit
6d7f489
·
verified ·
1 Parent(s): 7e48e70

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -130,6 +130,13 @@ pipe = DiffusionPipeline.from_pretrained(
130
  pipe.load_lora_weights(
131
  "lightx2v/Qwen-Image-Lightning", weight_name="Qwen-Image-Lightning-8steps-V1.0.safetensors"
132
  )
 
 
 
 
 
 
 
133
 
134
  # --- UI Constants and Helpers ---
135
  MAX_SEED = np.iinfo(np.int32).max
 
130
  pipe.load_lora_weights(
131
  "lightx2v/Qwen-Image-Lightning", weight_name="Qwen-Image-Lightning-8steps-V1.0.safetensors"
132
  )
133
+ pipe.fuse_lora()
134
+ pipe.unload_lora_weights()
135
+
136
+ pipe.load_lora_weights("flymy-ai/qwen-image-realism-lora")
137
+ pipe.fuse_lora()
138
+ pipe.unload_lora_weights()
139
+
140
 
141
  # --- UI Constants and Helpers ---
142
  MAX_SEED = np.iinfo(np.int32).max