HAL1993 commited on
Commit
5f1374f
·
verified ·
1 Parent(s): 7829c6a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -1,4 +1,5 @@
1
  import os
 
2
  import gradio as gr
3
  import numpy as np
4
  import random
@@ -66,9 +67,9 @@ pipe = QwenImageEditPlusPipeline.from_pretrained("Qwen/Qwen-Image-Edit-2509",
66
  scheduler=scheduler,
67
  torch_dtype=dtype).to(device)
68
  pipe.load_lora_weights(
69
- "lightx2v/Qwen-Image-Lightning",
70
- weight_name="Qwen-Image-Lightning-4steps-V2.0.safetensors"
71
- )
72
  pipe.fuse_lora()
73
 
74
  # Apply the same optimizations from the first version
 
1
  import os
2
+ import math # Added to fix NameError
3
  import gradio as gr
4
  import numpy as np
5
  import random
 
67
  scheduler=scheduler,
68
  torch_dtype=dtype).to(device)
69
  pipe.load_lora_weights(
70
+ "lightx2v/Qwen-Image-Lightning",
71
+ weight_name="Qwen-Image-Lightning-4steps-V2.0.safetensors"
72
+ )
73
  pipe.fuse_lora()
74
 
75
  # Apply the same optimizations from the first version