JosephBai commited on
Commit
091f2fc
·
1 Parent(s): 2fad823

update layout

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py CHANGED
@@ -349,6 +349,7 @@ with gr.Blocks() as demo:
349
  <br/>
350
  """)
351
 
 
352
  with gr.Row():
353
  with gr.Column():
354
  text_prompt_t2i = gr.Textbox(
@@ -387,15 +388,20 @@ with gr.Blocks() as demo:
387
  [text_prompt_t2i, guidance_scale_t2i, generation_timesteps_t2i],
388
  [generated_img_t2i])
389
 
 
390
  with gr.Row():
391
  inpainting_input_img = gr.Image(
392
  label="Input image",
393
  type="pil",
 
 
394
  )
395
  inpainting_input_mask = gr.Image(
396
  label="Inpainting mask",
397
  image_mode="L",
398
  type="pil",
 
 
399
  )
400
 
401
  with gr.Column():
@@ -443,6 +449,7 @@ with gr.Blocks() as demo:
443
  guidance_scale_inpainting, generation_timesteps_inpainting],
444
  [generated_img_inpainting])
445
 
 
446
  with gr.Row():
447
  extra_input_img = gr.Image(
448
  label="Input image",
@@ -510,6 +517,8 @@ with gr.Blocks() as demo:
510
  [extra_input_img, text_prompt_extrapolation, left_extrapolation, right_extrapolation,
511
  guidance_scale_extrapolation, generation_timesteps_extrapolation],
512
  [generated_img_extrapolation])
 
 
513
  with gr.Row():
514
  with gr.Row():
515
  chat_input_img = gr.Image(
 
349
  <br/>
350
  """)
351
 
352
+ banner_1 = gr.Markdown(value="# Text-to-image Generation")
353
  with gr.Row():
354
  with gr.Column():
355
  text_prompt_t2i = gr.Textbox(
 
388
  [text_prompt_t2i, guidance_scale_t2i, generation_timesteps_t2i],
389
  [generated_img_t2i])
390
 
391
+ banner_2 = gr.Markdown(value="# Text-guided inpainting")
392
  with gr.Row():
393
  inpainting_input_img = gr.Image(
394
  label="Input image",
395
  type="pil",
396
+ height=256,
397
+ width=256,
398
  )
399
  inpainting_input_mask = gr.Image(
400
  label="Inpainting mask",
401
  image_mode="L",
402
  type="pil",
403
+ height=256,
404
+ width=256,
405
  )
406
 
407
  with gr.Column():
 
449
  guidance_scale_inpainting, generation_timesteps_inpainting],
450
  [generated_img_inpainting])
451
 
452
+ banner_3 = gr.Markdown(value="# Text-guided extrapolation")
453
  with gr.Row():
454
  extra_input_img = gr.Image(
455
  label="Input image",
 
517
  [extra_input_img, text_prompt_extrapolation, left_extrapolation, right_extrapolation,
518
  guidance_scale_extrapolation, generation_timesteps_extrapolation],
519
  [generated_img_extrapolation])
520
+
521
+ banner_4 = gr.Markdown(value="# Multimodal understanding")
522
  with gr.Row():
523
  with gr.Row():
524
  chat_input_img = gr.Image(