CharlesCXK commited on
Commit
ab9b588
·
verified ·
1 Parent(s): 58586d1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -153,7 +153,7 @@ def generate_image(prompt,
153
  np.random.seed(seed)
154
  width = 384
155
  height = 384
156
- parallel_size = 5
157
 
158
  with torch.no_grad():
159
  messages = [{'role': '<|User|>', 'content': prompt},
@@ -239,7 +239,7 @@ with gr.Blocks(css=css) as demo:
239
 
240
  generation_button = gr.Button("Generate Images")
241
 
242
- image_output = gr.Gallery(label="Generated Images", columns=2, rows=2)
243
 
244
  with gr.Accordion("Advanced options", open=False):
245
  with gr.Row():
 
153
  np.random.seed(seed)
154
  width = 384
155
  height = 384
156
+ parallel_size = 4
157
 
158
  with torch.no_grad():
159
  messages = [{'role': '<|User|>', 'content': prompt},
 
239
 
240
  generation_button = gr.Button("Generate Images")
241
 
242
+ image_output = gr.Gallery(label="Generated Images", columns=4, rows=1)
243
 
244
  with gr.Accordion("Advanced options", open=False):
245
  with gr.Row():