Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,15 +6,12 @@ from optimum.intel.openvino import OVStableDiffusionPipeline
|
|
6 |
import torch
|
7 |
|
8 |
|
9 |
-
|
10 |
-
num_images_per_prompt = 1
|
11 |
-
height = 256
|
12 |
-
width = 256
|
13 |
|
14 |
model_id = "helenai/Linaqruf-anything-v3.0-ov"
|
15 |
|
16 |
pipe = OVStableDiffusionPipeline.from_pretrained(model_id, compile=False)
|
17 |
-
pipe.reshape( batch_size=
|
18 |
pipe.compile()
|
19 |
|
20 |
|
@@ -123,7 +120,7 @@ with gr.Blocks(css=css) as demo:
|
|
123 |
minimum=0.0,
|
124 |
maximum=10.0,
|
125 |
step=0.1,
|
126 |
-
value=
|
127 |
)
|
128 |
|
129 |
num_inference_steps = gr.Slider(
|
|
|
6 |
import torch
|
7 |
|
8 |
|
9 |
+
|
|
|
|
|
|
|
10 |
|
11 |
model_id = "helenai/Linaqruf-anything-v3.0-ov"
|
12 |
|
13 |
pipe = OVStableDiffusionPipeline.from_pretrained(model_id, compile=False)
|
14 |
+
pipe.reshape( batch_size=1, height=256, width=256, num_images_per_prompt=1)
|
15 |
pipe.compile()
|
16 |
|
17 |
|
|
|
120 |
minimum=0.0,
|
121 |
maximum=10.0,
|
122 |
step=0.1,
|
123 |
+
value=3.0,
|
124 |
)
|
125 |
|
126 |
num_inference_steps = gr.Slider(
|