LPX55 commited on
Commit
91627f2
·
verified ·
1 Parent(s): 0ee077e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -86,12 +86,13 @@ Please provide the rewritten instruction in a clean `json` format as:
86
  dtype = torch.bfloat16
87
  device = "cuda" if torch.cuda.is_available() else "cpu"
88
  pipe = QwenImageEditPipeline.from_pretrained("Qwen/Qwen-Image-Edit", torch_dtype=dtype).to(device)
 
89
  pipe.load_lora_weights(
90
- "lightx2v/Qwen-Image-Edit-Lightning",
91
- weight_name="Qwen-Image-Edit-Lightning-8steps-V1.1.safetensors"
92
  )
93
  pipe.fuse_lora()
94
 
 
95
  @spaces.GPU(duration=60)
96
  def infer(
97
  image,
 
86
  dtype = torch.bfloat16
87
  device = "cuda" if torch.cuda.is_available() else "cpu"
88
  pipe = QwenImageEditPipeline.from_pretrained("Qwen/Qwen-Image-Edit", torch_dtype=dtype).to(device)
89
+ # Load LoRA weights for acceleration
90
  pipe.load_lora_weights(
91
+ "lightx2v/Qwen-Image-Lightning", weight_name="Qwen-Image-Lightning-8steps-V1.1.safetensors"
 
92
  )
93
  pipe.fuse_lora()
94
 
95
+
96
  @spaces.GPU(duration=60)
97
  def infer(
98
  image,