Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,7 +19,7 @@ model_id = "OpenVINO/LCM_Dreamshaper_v7-int8-ov"
|
|
| 19 |
#pipeline = OVLatentConsistencyModelPipeline.from_pretrained(model_id, compile=False, safety_checker=safety_checker)
|
| 20 |
pipeline = OVLatentConsistencyModelPipeline.from_pretrained(model_id, compile=False)
|
| 21 |
|
| 22 |
-
batch_size, num_images, height, width = 1, 1,
|
| 23 |
pipeline.reshape(batch_size=batch_size, height=height, width=width, num_images_per_prompt=num_images)
|
| 24 |
|
| 25 |
#不可用lora
|
|
@@ -104,7 +104,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 104 |
minimum=1,
|
| 105 |
maximum=10,
|
| 106 |
step=1,
|
| 107 |
-
value=
|
| 108 |
)
|
| 109 |
|
| 110 |
gr.Examples(
|
|
|
|
| 19 |
#pipeline = OVLatentConsistencyModelPipeline.from_pretrained(model_id, compile=False, safety_checker=safety_checker)
|
| 20 |
pipeline = OVLatentConsistencyModelPipeline.from_pretrained(model_id, compile=False)
|
| 21 |
|
| 22 |
+
batch_size, num_images, height, width = 1, 1, 512, 512
|
| 23 |
pipeline.reshape(batch_size=batch_size, height=height, width=width, num_images_per_prompt=num_images)
|
| 24 |
|
| 25 |
#不可用lora
|
|
|
|
| 104 |
minimum=1,
|
| 105 |
maximum=10,
|
| 106 |
step=1,
|
| 107 |
+
value=4,
|
| 108 |
)
|
| 109 |
|
| 110 |
gr.Examples(
|