WiNE-iNEFF commited on
Commit
bfec533
·
1 Parent(s): 7eb6823

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -9
app.py CHANGED
@@ -49,7 +49,7 @@ def ex():
49
  print(ctime(t))
50
  return generate(), generate(), generate(), generate()
51
 
52
- demo = gr.Blocks(css="#img_size {max-width: 128px; max-height: 128px;}")
53
 
54
  with demo:
55
  gr.HTML(
@@ -66,14 +66,13 @@ with demo:
66
  </div>
67
  """
68
  )
69
- with gr.Group():
70
- with gr.Column():
71
- with gr.Row().style(equal_height=True):
72
- out = gr.Image(shape=(64,64), image_mode='RGBA', type='pil', elem_id='img_size')
73
- out2 = gr.Image(shape=(64,64), image_mode='RGBA', type='pil', elem_id='img_size')
74
- with gr.Row().style(equal_height=True):
75
- out3 = gr.Image(shape=(64,64), image_mode='RGBA', type='pil', elem_id='img_size')
76
- out4 = gr.Image(shape=(64,64), image_mode='RGBA', type='pil', elem_id='img_size')
77
  greet_btn = gr.Button("Generate")
78
  greet_btn.click(fn=ex, inputs=None, outputs=[out, out2, out3, out4])
79
  gr.HTML(
 
49
  print(ctime(t))
50
  return generate(), generate(), generate(), generate()
51
 
52
+ demo = gr.Blocks(css="#img_size {max-height: 128px;}")
53
 
54
  with demo:
55
  gr.HTML(
 
66
  </div>
67
  """
68
  )
69
+ with gr.Column():
70
+ with gr.Row().style(equal_height=True):
71
+ out = gr.Image(shape=(64,64), image_mode='RGBA', type='pil', elem_id='img_size')
72
+ out2 = gr.Image(shape=(64,64), image_mode='RGBA', type='pil', elem_id='img_size')
73
+ with gr.Row().style(equal_height=True):
74
+ out3 = gr.Image(shape=(64,64), image_mode='RGBA', type='pil', elem_id='img_size')
75
+ out4 = gr.Image(shape=(64,64), image_mode='RGBA', type='pil', elem_id='img_size')
 
76
  greet_btn = gr.Button("Generate")
77
  greet_btn.click(fn=ex, inputs=None, outputs=[out, out2, out3, out4])
78
  gr.HTML(