lainlives commited on
Commit
f7fa496
·
1 Parent(s): ffe4561

arranging ui better

Browse files
Files changed (1) hide show
  1. app.py +16 -15
app.py CHANGED
@@ -175,21 +175,6 @@ with gr.Blocks(css=css) as demo:
175
  step=1,
176
  value=20,
177
  )
178
- run_button.click(
179
- fn=infer,
180
- inputs=[
181
- prompt,
182
- negative_prompt,
183
- seed,
184
- randomize_seed,
185
- batch_size,
186
- width,
187
- height,
188
- guidance_scale,
189
- num_inference_steps,
190
- ],
191
- outputs=results,
192
- )
193
 
194
  with gr.Column(elem_id="col-container"):
195
  with gr.Row():
@@ -204,6 +189,21 @@ with gr.Blocks(css=css) as demo:
204
  )
205
 
206
  run_button = gr.Button("Run", scale=0)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
207
  results = []
208
 
209
  with gr.Column():
@@ -211,6 +211,7 @@ with gr.Blocks(css=css) as demo:
211
  with gr.Row():
212
  for _ in range(2):
213
  results.append(gr.Image(format="png", show_label=False, visible=True))
 
214
 
215
 
216
  demo.queue().launch()
 
175
  step=1,
176
  value=20,
177
  )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
178
 
179
  with gr.Column(elem_id="col-container"):
180
  with gr.Row():
 
189
  )
190
 
191
  run_button = gr.Button("Run", scale=0)
192
+ run_button.click(
193
+ fn=infer,
194
+ inputs=[
195
+ prompt,
196
+ negative_prompt,
197
+ seed,
198
+ randomize_seed,
199
+ batch_size,
200
+ width,
201
+ height,
202
+ guidance_scale,
203
+ num_inference_steps,
204
+ ],
205
+ outputs=results,
206
+ )
207
  results = []
208
 
209
  with gr.Column():
 
211
  with gr.Row():
212
  for _ in range(2):
213
  results.append(gr.Image(format="png", show_label=False, visible=True))
214
+
215
 
216
 
217
  demo.queue().launch()