juancopi81 commited on
Commit
270829d
β€’
1 Parent(s): 0aa8fba

Change grid to 2

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -43,7 +43,7 @@ pipe = pipe.to(device)
43
  #torch.backends.cudnn.benchmark = True
44
  num_samples = 2
45
 
46
- def infer(prompt, scale, steps):
47
 
48
  with context("cuda"):
49
  images = pipe(num_samples*[prompt],
@@ -179,18 +179,18 @@ block = gr.Blocks(css=css)
179
  examples = [
180
  [
181
  'Una casa en la playa en un atardecer lluvioso',
182
- 45,
183
  7.5,
 
184
  ],
185
  [
186
  'Ein Hund, der Orange isst',
187
- 45,
188
  7.5,
 
189
  ],
190
  [
191
  "Photo d'un restaurant parisien",
192
- 45,
193
  7.5,
 
194
  ],
195
  ]
196
 
@@ -233,7 +233,7 @@ with block as demo:
233
  )
234
 
235
  gallery = gr.Gallery(label="Generated images", show_label=False, elem_id="gallery").style(
236
- grid=[1], height="auto"
237
  )
238
 
239
  with gr.Row(elem_id="advanced-options"):
 
43
  #torch.backends.cudnn.benchmark = True
44
  num_samples = 2
45
 
46
+ def infer(prompt, steps, scale):
47
 
48
  with context("cuda"):
49
  images = pipe(num_samples*[prompt],
 
179
  examples = [
180
  [
181
  'Una casa en la playa en un atardecer lluvioso',
 
182
  7.5,
183
+ 45,
184
  ],
185
  [
186
  'Ein Hund, der Orange isst',
 
187
  7.5,
188
+ 45,
189
  ],
190
  [
191
  "Photo d'un restaurant parisien",
 
192
  7.5,
193
+ 45,
194
  ],
195
  ]
196
 
 
233
  )
234
 
235
  gallery = gr.Gallery(label="Generated images", show_label=False, elem_id="gallery").style(
236
+ grid=[2], height="auto"
237
  )
238
 
239
  with gr.Row(elem_id="advanced-options"):