LouisLi commited on
Commit
cd7edca
·
verified ·
1 Parent(s): 7f283ac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1288,13 +1288,13 @@ def create_ui():
1288
  )
1289
  run_button = gr.Button("Run", scale=0)
1290
 
1291
- with gr.Accordion("Advanced options", open=False):
1292
  num_images = gr.Slider(
1293
  label="Number of Images",
1294
  minimum=1,
1295
  maximum=4,
1296
  step=1,
1297
- value=1,
1298
  )
1299
  with gr.Row():
1300
  use_negative_prompt = gr.Checkbox(label="Use negative prompt", value=True)
@@ -1345,7 +1345,7 @@ def create_ui():
1345
  value=8,
1346
  )
1347
  with gr.Column():
1348
- result = gr.Gallery(label="Result", columns=2, rows=2, show_label=False)
1349
 
1350
 
1351
  # gr.Examples(
 
1288
  )
1289
  run_button = gr.Button("Run", scale=0)
1290
 
1291
+ with gr.Accordion("Advanced options", open=True):
1292
  num_images = gr.Slider(
1293
  label="Number of Images",
1294
  minimum=1,
1295
  maximum=4,
1296
  step=1,
1297
+ value=4,
1298
  )
1299
  with gr.Row():
1300
  use_negative_prompt = gr.Checkbox(label="Use negative prompt", value=True)
 
1345
  value=8,
1346
  )
1347
  with gr.Column():
1348
+ result = gr.Gallery(label="Result", columns=[2], rows=[2], show_label=False,allow_preview=True,object_fit="contain", height="auto",preview=True,show_share_button=True,show_download_button=True)
1349
 
1350
 
1351
  # gr.Examples(