Tech-Meld commited on
Commit
42cdd34
·
verified ·
1 Parent(s): 10b626b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -13,10 +13,11 @@ pipe.scheduler = LCMScheduler.from_config(pipe.scheduler.config)
13
  # Loading LoRA weights
14
  pipe.load_lora_weights("latent-consistency/lcm-lora-sdxl")
15
 
16
- # Convert the model to OpenVINO format
17
  pipeline = OVStableDiffusionXLPipeline.from_pretrained(
18
  model_id,
19
- export=True
 
20
  )
21
 
22
  def generate_images(prompt, batch_size, num_inference_steps, guidance_scale):
 
13
  # Loading LoRA weights
14
  pipe.load_lora_weights("latent-consistency/lcm-lora-sdxl")
15
 
16
+ # Converting the model to OpenVINO format
17
  pipeline = OVStableDiffusionXLPipeline.from_pretrained(
18
  model_id,
19
+ export=True,
20
+ framework="pt"
21
  )
22
 
23
  def generate_images(prompt, batch_size, num_inference_steps, guidance_scale):