xinchen9 commited on
Commit
8d45efd
·
verified ·
1 Parent(s): 68dce92

[Update]Add a two columns

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -12,10 +12,10 @@ with gr.Blocks() as demo:
12
  inbtw = gr.Button("Between")
13
  text4 = gr.Textbox(label="prompt 1")
14
  text5 = gr.Textbox(label="prompt 2")
15
- with gr.Column(scale=1, min_width=600):
16
- with gr.Row():
17
- img1 = gr.Image("images/cheetah.jpg")
18
- with gr.Row():
19
- img2 = gr.Image("images/cheetah.jpg")
20
 
21
  demo.launch()
 
12
  inbtw = gr.Button("Between")
13
  text4 = gr.Textbox(label="prompt 1")
14
  text5 = gr.Textbox(label="prompt 2")
15
+ with gr.Row:
16
+ with gr.Column(scale=1, min_width=300):
17
+ img1 = gr.Image("images/cheetah.jpg")
18
+ with gr.Column(scale=1, min_width=300):
19
+ img2 = gr.Image("images/cheetah.jpg")
20
 
21
  demo.launch()