linoyts HF Staff commited on
Commit
f7109dc
·
verified ·
1 Parent(s): 42b5908

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -171,10 +171,12 @@ scheduler_config = {
171
  scheduler = FlowMatchEulerDiscreteScheduler.from_config(scheduler_config)
172
 
173
 
174
- pipe = QwenImageEditInpaintPipeline.from_pretrained("Qwen/Qwen-Image-Edit", scheduler=scheduler, torch_dtype=torch.bfloat16).to("cuda")
 
 
175
  pipe.load_lora_weights(
176
  "lightx2v/Qwen-Image-Lightning",
177
- weight_name="Qwen-Image-Lightning-8steps-V1.1.safetensors"
178
  )
179
  pipe.fuse_lora()
180
 
@@ -255,10 +257,10 @@ with gr.Blocks(css=css) as demo:
255
  """)
256
  gr.Markdown("""
257
 
258
- Inpaint images with Qwen Image Edit. [Learn more](https://github.com/QwenLM/Qwen-Image) about the Qwen-Image series.
259
 
260
  This demo uses the [Qwen-Image-Lightning](https://huggingface.co/lightx2v/Qwen-Image-Lightning) LoRA with FA3 for accelerated 8-step inference.
261
- Try on [Qwen Chat](https://chat.qwen.ai/), or [download model](https://huggingface.co/Qwen/Qwen-Image-Edit) to run locally with ComfyUI or diffusers.
262
  """)
263
  with gr.Row():
264
  with gr.Column():
 
171
  scheduler = FlowMatchEulerDiscreteScheduler.from_config(scheduler_config)
172
 
173
 
174
+ pipe = QwenImageEditPlusPipeline.from_pretrained("Qwen/Qwen-Image-Edit-2509",
175
+ scheduler=scheduler,
176
+ torch_dtype=dtype).to(device)
177
  pipe.load_lora_weights(
178
  "lightx2v/Qwen-Image-Lightning",
179
+ weight_name="Qwen-Image-Edit-2509/Qwen-Image-Edit-2509-Lightning-8steps-V1.0-bf16.safetensors"
180
  )
181
  pipe.fuse_lora()
182
 
 
257
  """)
258
  gr.Markdown("""
259
 
260
+ Inpaint images with new [Qwen-Image-Edit-2509](https://huggingface.co/Qwen/Qwen-Image-Edit-2509). [Learn more](https://github.com/QwenLM/Qwen-Image) about the Qwen-Image series.
261
 
262
  This demo uses the [Qwen-Image-Lightning](https://huggingface.co/lightx2v/Qwen-Image-Lightning) LoRA with FA3 for accelerated 8-step inference.
263
+ Try on [Qwen Chat](https://chat.qwen.ai/), or [download model](https://huggingface.co/Qwen/Qwen-Image-Edit-2509) to run locally with ComfyUI or diffusers.
264
  """)
265
  with gr.Row():
266
  with gr.Column():