Spaces:
Sleeping
Sleeping
Re positioning gradio items
Browse files
app.py
CHANGED
|
@@ -265,32 +265,32 @@ with image_blocks as demo:
|
|
| 265 |
with gr.Row():
|
| 266 |
with gr.Column():
|
| 267 |
imgs = gr.ImageEditor(sources='upload', type="pil", label='λμ μ΄λ―Έμ§', interactive=True)
|
| 268 |
-
|
| 269 |
-
|
| 270 |
# with gr.Row():
|
| 271 |
# is_checked_crop = gr.Checkbox(label="Yes", info="Use auto-crop & resizing",value=False)
|
| 272 |
|
| 273 |
-
|
| 274 |
-
|
| 275 |
-
|
| 276 |
-
|
| 277 |
-
|
| 278 |
|
| 279 |
-
|
| 280 |
-
|
| 281 |
-
|
| 282 |
-
|
| 283 |
-
|
| 284 |
-
|
| 285 |
-
|
| 286 |
-
|
| 287 |
-
|
| 288 |
-
|
| 289 |
-
|
| 290 |
-
|
| 291 |
-
|
| 292 |
-
|
| 293 |
-
|
| 294 |
|
| 295 |
with gr.Column():
|
| 296 |
try_button = gr.Button(value="Try-on")
|
|
|
|
| 265 |
with gr.Row():
|
| 266 |
with gr.Column():
|
| 267 |
imgs = gr.ImageEditor(sources='upload', type="pil", label='λμ μ΄λ―Έμ§', interactive=True)
|
| 268 |
+
with gr.Row():
|
| 269 |
+
is_checked = gr.Checkbox(label="Yes", info="Use auto-generated mask (Takes 5 seconds)",value=True)
|
| 270 |
# with gr.Row():
|
| 271 |
# is_checked_crop = gr.Checkbox(label="Yes", info="Use auto-crop & resizing",value=False)
|
| 272 |
|
| 273 |
+
example = gr.Examples(
|
| 274 |
+
inputs=imgs,
|
| 275 |
+
examples_per_page=10,
|
| 276 |
+
examples=human_ex_list
|
| 277 |
+
)
|
| 278 |
|
| 279 |
+
with gr.Column():
|
| 280 |
+
garm_img = gr.Image(label="μμ μ΄λ―Έμ§", sources='upload', type="pil")
|
| 281 |
+
with gr.Row(elem_id="prompt-container"):
|
| 282 |
+
with gr.Row():
|
| 283 |
+
prompt = gr.Textbox(placeholder="Description of garment ex) Short Sleeve Round Neck T-shirts", show_label=False, elem_id="prompt")
|
| 284 |
+
example = gr.Examples(
|
| 285 |
+
inputs=garm_img,
|
| 286 |
+
examples_per_page=8,
|
| 287 |
+
examples=garm_list_path)
|
| 288 |
+
with gr.Column():
|
| 289 |
+
# image_out = gr.Image(label="Output", elem_id="output-img", height=400)
|
| 290 |
+
masked_img = gr.Image(label="Masked image output", elem_id="masked-img",show_share_button=False)
|
| 291 |
+
with gr.Column():
|
| 292 |
+
# image_out = gr.Image(label="Output", elem_id="output-img", height=400)
|
| 293 |
+
image_out = gr.Image(label="Output", elem_id="output-img",show_share_button=False)
|
| 294 |
|
| 295 |
with gr.Column():
|
| 296 |
try_button = gr.Button(value="Try-on")
|