ijohn07 commited on
Commit
250036a
·
verified ·
1 Parent(s): 03bd789

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -79,7 +79,7 @@ def generate(
79
  num_inference_steps: int = 25,
80
  randomize_seed: bool = False,
81
  use_resolution_binning: bool = True,
82
- num_images: int = 2, # Number of images to generate
83
  progress=gr.Progress(track_tqdm=True),
84
  ):
85
  seed = int(randomize_seed_fn(seed, randomize_seed))
@@ -124,14 +124,14 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
124
  container=False,
125
  )
126
  run_button = gr.Button("Run", scale=0)
127
- result = gr.Gallery(label="Result", columns=1, show_label=False)
128
  with gr.Accordion("Advanced options", open=False, visible=True):
129
  num_images = gr.Slider(
130
  label="Number of Images",
131
  minimum=1,
132
  maximum=4,
133
  step=1,
134
- value=1,
135
  )
136
  with gr.Row():
137
  use_negative_prompt = gr.Checkbox(label="Use negative prompt", value=True)
 
79
  num_inference_steps: int = 25,
80
  randomize_seed: bool = False,
81
  use_resolution_binning: bool = True,
82
+ num_images: int = 4, # Number of images to generate
83
  progress=gr.Progress(track_tqdm=True),
84
  ):
85
  seed = int(randomize_seed_fn(seed, randomize_seed))
 
124
  container=False,
125
  )
126
  run_button = gr.Button("Run", scale=0)
127
+ result = gr.Gallery(label="Result", columns=2, show_label=False)
128
  with gr.Accordion("Advanced options", open=False, visible=True):
129
  num_images = gr.Slider(
130
  label="Number of Images",
131
  minimum=1,
132
  maximum=4,
133
  step=1,
134
+ value=4,
135
  )
136
  with gr.Row():
137
  use_negative_prompt = gr.Checkbox(label="Use negative prompt", value=True)