lixiang46 commited on
Commit
7de6d0d
1 Parent(s): 81ef1d4
Files changed (1) hide show
  1. app.py +7 -9
app.py CHANGED
@@ -110,21 +110,19 @@ with gr.Blocks(css=css) as Tryon:
110
  with gr.Column(elem_id = "col-right"):
111
  image_out = gr.Image(label="Output", show_share_button=False)
112
  with gr.Row():
113
- seed_used = gr.Number(label="Seed Used")
114
- result_info = gr.Text(label="Response")
115
- try_button = gr.Button(value="Try-on", elem_id="button")
116
-
117
-
118
- with gr.Column():
119
- with gr.Accordion(label="Advanced Settings", open=False):
120
- seed = gr.Slider(
121
  label="Seed",
122
  minimum=0,
123
  maximum=MAX_SEED,
124
  step=1,
125
  value=0,
126
  )
127
- randomize_seed = gr.Checkbox(label="Randomize seed", value=True)
 
 
 
 
 
128
 
129
  try_button.click(fn=start_tryon, inputs=[imgs, garm_img, seed, randomize_seed], outputs=[image_out, seed_used, result_info], api_name='tryon')
130
 
 
110
  with gr.Column(elem_id = "col-right"):
111
  image_out = gr.Image(label="Output", show_share_button=False)
112
  with gr.Row():
113
+ seed = gr.Slider(
 
 
 
 
 
 
 
114
  label="Seed",
115
  minimum=0,
116
  maximum=MAX_SEED,
117
  step=1,
118
  value=0,
119
  )
120
+ randomize_seed = gr.Checkbox(label="Random seed", value=True)
121
+ with gr.Row():
122
+ seed_used = gr.Number(label="Seed Used")
123
+ result_info = gr.Text(label="Response")
124
+ try_button = gr.Button(value="Run", elem_id="button")
125
+
126
 
127
  try_button.click(fn=start_tryon, inputs=[imgs, garm_img, seed, randomize_seed], outputs=[image_out, seed_used, result_info], api_name='tryon')
128