zc-huhu commited on
Commit
218fb5f
·
1 Parent(s): 214cdb2

adjust css

Browse files
Files changed (1) hide show
  1. app.py +14 -5
app.py CHANGED
@@ -9,16 +9,25 @@ tryon_css="""
9
  #col-garment {
10
  margin: 0 auto;
11
  max-width: 420px;
 
 
 
12
  max-height: 560px;
13
  }
14
- #col-mid {
15
  margin: 0 auto;
16
  max-width: 420px;
 
 
 
17
  max-height: 560px;
18
  }
19
- #col-right {
20
  margin: 0 auto;
21
  max-width: 420px;
 
 
 
22
  max-height: 560px;
23
  }
24
  #col-examples {
@@ -144,7 +153,7 @@ with gr.Blocks(css=tryon_css) as Huhu_Turbo:
144
  """)
145
  with gr.Row():
146
  with gr.Column(elem_id = "col-garment"):
147
- garm_img = gr.Image(label="Garment image", sources='upload', type="filepath")
148
  category = gr.Dropdown(label="Garment type", choices=['Top', 'Bottom', 'Fullbody'], value="Top")
149
  garm_example = gr.Examples(
150
  inputs=garm_img,
@@ -153,14 +162,14 @@ with gr.Blocks(css=tryon_css) as Huhu_Turbo:
153
  cache_examples=False
154
  )
155
  with gr.Column(elem_id = "col-person"):
156
- person_img = gr.Image(label="Person image", sources='upload', type="filepath")
157
  person_example = gr.Examples(
158
  inputs=person_img,
159
  examples_per_page=10,
160
  examples=person_list_path
161
  )
162
  with gr.Column(elem_id = "col-result"):
163
- result_img = gr.Image(label="Result", show_share_button=False)
164
  with gr.Row():
165
  result_info = gr.Text(label="Tryon inference runtime")
166
  generate_button = gr.Button(value="RUN", elem_id="button")
 
9
  #col-garment {
10
  margin: 0 auto;
11
  max-width: 420px;
12
+ }
13
+ #garm_img {
14
+ margin: 0 auto;
15
  max-height: 560px;
16
  }
17
+ #col-person {
18
  margin: 0 auto;
19
  max-width: 420px;
20
+ }
21
+ #person_img {
22
+ margin: 0 auto;
23
  max-height: 560px;
24
  }
25
+ #col-result {
26
  margin: 0 auto;
27
  max-width: 420px;
28
+ }
29
+ #result_img {
30
+ margin: 0 auto;
31
  max-height: 560px;
32
  }
33
  #col-examples {
 
153
  """)
154
  with gr.Row():
155
  with gr.Column(elem_id = "col-garment"):
156
+ garm_img = gr.Image(label="Garment image", sources='upload', type="filepath", elem_id="garm_img")
157
  category = gr.Dropdown(label="Garment type", choices=['Top', 'Bottom', 'Fullbody'], value="Top")
158
  garm_example = gr.Examples(
159
  inputs=garm_img,
 
162
  cache_examples=False
163
  )
164
  with gr.Column(elem_id = "col-person"):
165
+ person_img = gr.Image(label="Person image", sources='upload', type="filepath", elem_id="person_img")
166
  person_example = gr.Examples(
167
  inputs=person_img,
168
  examples_per_page=10,
169
  examples=person_list_path
170
  )
171
  with gr.Column(elem_id = "col-result"):
172
+ result_img = gr.Image(label="Result", show_share_button=False, elem_id="result_img")
173
  with gr.Row():
174
  result_info = gr.Text(label="Tryon inference runtime")
175
  generate_button = gr.Button(value="RUN", elem_id="button")