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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -4
app.py CHANGED
@@ -5,6 +5,12 @@ from diffusers import DiffusionPipeline
5
  from optimum.intel.openvino import OVStableDiffusionPipeline
6
  import torch
7
 
 
 
 
 
 
 
8
  model_id = "helenai/Linaqruf-anything-v3.0-ov"
9
 
10
  pipe = OVStableDiffusionPipeline.from_pretrained(model_id, compile=False)
@@ -99,7 +105,7 @@ with gr.Blocks(css=css) as demo:
99
  minimum=256,
100
  maximum=MAX_IMAGE_SIZE,
101
  step=32,
102
- value=512,
103
  )
104
 
105
  height = gr.Slider(
@@ -107,7 +113,7 @@ with gr.Blocks(css=css) as demo:
107
  minimum=256,
108
  maximum=MAX_IMAGE_SIZE,
109
  step=32,
110
- value=512,
111
  )
112
 
113
  with gr.Row():
@@ -123,9 +129,9 @@ with gr.Blocks(css=css) as demo:
123
  num_inference_steps = gr.Slider(
124
  label="Number of inference steps",
125
  minimum=1,
126
- maximum=12,
127
  step=1,
128
- value=2,
129
  )
130
 
131
  gr.Examples(
 
5
  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)
 
105
  minimum=256,
106
  maximum=MAX_IMAGE_SIZE,
107
  step=32,
108
+ value=256,
109
  )
110
 
111
  height = gr.Slider(
 
113
  minimum=256,
114
  maximum=MAX_IMAGE_SIZE,
115
  step=32,
116
+ value=256,
117
  )
118
 
119
  with gr.Row():
 
129
  num_inference_steps = gr.Slider(
130
  label="Number of inference steps",
131
  minimum=1,
132
+ maximum=25,
133
  step=1,
134
+ value=25,
135
  )
136
 
137
  gr.Examples(