Peng-Wang commited on
Commit
0162aae
1 Parent(s): 15e5651

fix display size optimal for square image

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -58,7 +58,7 @@ example_instructions = [
58
  ]
59
 
60
  def main():
61
- resolution = 1024
62
  cfg = {"resolution": resolution}
63
  model_t2i = SeedT2ICaller(cfg)
64
 
@@ -122,7 +122,7 @@ def main():
122
 
123
  with gr.Row():
124
  input_image = gr.Image(label="Input Image", type="pil", interactive=True,
125
- height=resolution, width=resolution)
126
  edited_image = gr.Image(label="Edited Image", type="pil", interactive=False,
127
  height=resolution, width=resolution)
128
 
 
58
  ]
59
 
60
  def main():
61
+ resolution = 728
62
  cfg = {"resolution": resolution}
63
  model_t2i = SeedT2ICaller(cfg)
64
 
 
122
 
123
  with gr.Row():
124
  input_image = gr.Image(label="Input Image", type="pil", interactive=True,
125
+ height=resolution + 36, width=resolution)
126
  edited_image = gr.Image(label="Edited Image", type="pil", interactive=False,
127
  height=resolution, width=resolution)
128