pengdaqian commited on
Commit
c947846
1 Parent(s): 8e198ad
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -371,11 +371,11 @@ with block:
371
  </h1>
372
  </div>
373
  <p style="margin-bottom: 10px; font-size: 94%; line-height: 23px;">
374
- Stable Diffusion 2.1 Demo App. <br />
375
  Click <strong>Generate image</strong> Button to generate image. <br />
376
  Also Change params to have a try <br />
377
- 512*512 is optimized, every image will cost 30s. <br />
378
- other size may cost more time. <br />
379
  It's just a simplified demo, you can use more advanced features optimize image quality <br />
380
  </p>
381
  </div>
@@ -439,9 +439,9 @@ with block:
439
  full_width=False,
440
  )
441
 
442
- gallery = gr.Gallery(
443
  label="Generated images", show_label=False, elem_id="gallery"
444
- ).style(grid=[2], height="auto")
445
 
446
  # with gr.Group(elem_id="container-advanced-btns"):
447
  # # advanced_button = gr.Button("Advanced options", elem_id="advanced-btn")
 
371
  </h1>
372
  </div>
373
  <p style="margin-bottom: 10px; font-size: 94%; line-height: 23px;">
374
+ small stable diffusion Demo App. <br />
375
  Click <strong>Generate image</strong> Button to generate image. <br />
376
  Also Change params to have a try <br />
377
+ every 512*512 image will cost about 40s. <br />
378
+ more size may cost more time. <br />
379
  It's just a simplified demo, you can use more advanced features optimize image quality <br />
380
  </p>
381
  </div>
 
439
  full_width=False,
440
  )
441
 
442
+ gallery = gr.Image(
443
  label="Generated images", show_label=False, elem_id="gallery"
444
+ ).style(height=512)
445
 
446
  # with gr.Group(elem_id="container-advanced-btns"):
447
  # # advanced_button = gr.Button("Advanced options", elem_id="advanced-btn")