HelloSun commited on
Commit
7006304
·
verified ·
1 Parent(s): 9f7c87a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -6,15 +6,12 @@ from optimum.intel.openvino import OVStableDiffusionPipeline
6
  import torch
7
 
8
 
9
- batch_size = 1
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=batch_size, height=height, width=width, num_images_per_prompt=num_images_per_prompt)
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=0.0,
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(