KingNish commited on
Commit
664d54d
1 Parent(s): 77f1348

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -122,7 +122,7 @@ with gr.Blocks(css=css) as demo:
122
  container=False,
123
  )
124
  run_button = gr.Button("Run", scale=0)
125
- result = gr.Gallery(label="Result", columns=2, show_label=False)
126
  with gr.Accordion("Advanced options", open=False):
127
  num_images = gr.Slider(
128
  label="Number of Images",
@@ -185,6 +185,7 @@ with gr.Blocks(css=css) as demo:
185
  inputs=prompt,
186
  outputs=[result, seed],
187
  fn=generate,
 
188
  )
189
 
190
  use_negative_prompt.change(
 
122
  container=False,
123
  )
124
  run_button = gr.Button("Run", scale=0)
125
+ result = gr.Gallery(label="Result", columns=1, show_label=False)
126
  with gr.Accordion("Advanced options", open=False):
127
  num_images = gr.Slider(
128
  label="Number of Images",
 
185
  inputs=prompt,
186
  outputs=[result, seed],
187
  fn=generate,
188
+ cache_examples=True
189
  )
190
 
191
  use_negative_prompt.change(