root commited on
Commit
b2ee6dc
1 Parent(s): b743b0f

add width,height,seed

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -280,7 +280,7 @@ if __name__ == "__main__":
280
  gallery = gr.Gallery(
281
  label="Generated images", show_label=False, elem_id="gallery"
282
  ).style(grid=[2,2])
283
- gr.Examples(examples=examples, fn=request_images, inputs=text, outputs=gallery, examples_per_page=100)
284
  with gr.Row().style(mobile_collapse=False, equal_height=True):
285
  img_choices = gr.Dropdown(["图片1(img1)"],label='请选择一张图片发送到图生图或者超分',show_label=True,value="图片1(img1)")
286
  with gr.Row().style(mobile_collapse=False, equal_height=True):
@@ -313,7 +313,7 @@ if __name__ == "__main__":
313
  # )
314
 
315
  text.submit(request_images, inputs=[text, class_draw, style_draw, sample_size, sr_option, w, h, seed], outputs=gallery)
316
- btn.click(request_images, inputs=[text, class_draw, style_draw, sample_size, sr_option], outputs=gallery)
317
  # to do here
318
  output_txt2img_sr_btn.click(sr_request_images, inputs=[gallery, img_choices], outputs=[sr_gallery])
319
 
 
280
  gallery = gr.Gallery(
281
  label="Generated images", show_label=False, elem_id="gallery"
282
  ).style(grid=[2,2])
283
+ gr.Examples(examples=examples, fn=request_images, inputs=[text, class_draw, style_draw, sample_size, sr_option, w, h, seed], outputs=gallery, examples_per_page=100)
284
  with gr.Row().style(mobile_collapse=False, equal_height=True):
285
  img_choices = gr.Dropdown(["图片1(img1)"],label='请选择一张图片发送到图生图或者超分',show_label=True,value="图片1(img1)")
286
  with gr.Row().style(mobile_collapse=False, equal_height=True):
 
313
  # )
314
 
315
  text.submit(request_images, inputs=[text, class_draw, style_draw, sample_size, sr_option, w, h, seed], outputs=gallery)
316
+ btn.click(request_images, inputs=[text, class_draw, style_draw, sample_size, sr_option, w, h, seed], outputs=gallery)
317
  # to do here
318
  output_txt2img_sr_btn.click(sr_request_images, inputs=[gallery, img_choices], outputs=[sr_gallery])
319