Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
#
|
| 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):
|