Update app.py
Browse files
app.py
CHANGED
@@ -337,7 +337,6 @@ def app_gradio():
|
|
337 |
|
338 |
with gr.Row():
|
339 |
with gr.Column(scale=1, min_width=350):
|
340 |
-
# (์์ ) ์๋ ๋ผ์ธ์ gr.Box() -> gr.Group()์ผ๋ก ๋ณ๊ฒฝ
|
341 |
with gr.Group():
|
342 |
gr.Markdown("### ๐ธ Upload Images")
|
343 |
with gr.Row():
|
@@ -427,6 +426,7 @@ def app_gradio():
|
|
427 |
root_path = "resource/demo/example"
|
428 |
with gr.Column():
|
429 |
gr.Markdown("#### ๐ค Model Examples")
|
|
|
430 |
men_exm = gr.Examples(
|
431 |
examples=[
|
432 |
os.path.join(root_path, "person", "men", file)
|
@@ -434,8 +434,7 @@ def app_gradio():
|
|
434 |
],
|
435 |
examples_per_page=4,
|
436 |
inputs=image_path,
|
437 |
-
label="Men's Examples"
|
438 |
-
elem_classes="example-item"
|
439 |
)
|
440 |
women_exm = gr.Examples(
|
441 |
examples=[
|
@@ -444,8 +443,7 @@ def app_gradio():
|
|
444 |
],
|
445 |
examples_per_page=4,
|
446 |
inputs=image_path,
|
447 |
-
label="Women's Examples"
|
448 |
-
elem_classes="example-item"
|
449 |
)
|
450 |
gr.Markdown(
|
451 |
'<div class="info-text">Model examples courtesy of <a href="https://huggingface.co/spaces/levihsu/OOTDiffusion">OOTDiffusion</a> and <a href="https://www.outfitanyone.org">OutfitAnyone</a></div>'
|
@@ -460,8 +458,7 @@ def app_gradio():
|
|
460 |
],
|
461 |
examples_per_page=4,
|
462 |
inputs=cloth_image,
|
463 |
-
label="Upper Garments"
|
464 |
-
elem_classes="example-item"
|
465 |
)
|
466 |
condition_overall_exm = gr.Examples(
|
467 |
examples=[
|
@@ -470,8 +467,7 @@ def app_gradio():
|
|
470 |
],
|
471 |
examples_per_page=4,
|
472 |
inputs=cloth_image,
|
473 |
-
label="Full Outfits"
|
474 |
-
elem_classes="example-item"
|
475 |
)
|
476 |
condition_person_exm = gr.Examples(
|
477 |
examples=[
|
@@ -480,8 +476,7 @@ def app_gradio():
|
|
480 |
],
|
481 |
examples_per_page=4,
|
482 |
inputs=cloth_image,
|
483 |
-
label="Reference Styles"
|
484 |
-
elem_classes="example-item"
|
485 |
)
|
486 |
gr.Markdown(
|
487 |
'<div class="info-text">Clothing examples sourced from various online retailers</div>'
|
|
|
337 |
|
338 |
with gr.Row():
|
339 |
with gr.Column(scale=1, min_width=350):
|
|
|
340 |
with gr.Group():
|
341 |
gr.Markdown("### ๐ธ Upload Images")
|
342 |
with gr.Row():
|
|
|
426 |
root_path = "resource/demo/example"
|
427 |
with gr.Column():
|
428 |
gr.Markdown("#### ๐ค Model Examples")
|
429 |
+
# elem_classes ์ธ์๋ฅผ ์ ๊ฑฐํด์ผ ์ค๋ฅ๊ฐ ์ฌ๋ผ์ง๋๋ค.
|
430 |
men_exm = gr.Examples(
|
431 |
examples=[
|
432 |
os.path.join(root_path, "person", "men", file)
|
|
|
434 |
],
|
435 |
examples_per_page=4,
|
436 |
inputs=image_path,
|
437 |
+
label="Men's Examples"
|
|
|
438 |
)
|
439 |
women_exm = gr.Examples(
|
440 |
examples=[
|
|
|
443 |
],
|
444 |
examples_per_page=4,
|
445 |
inputs=image_path,
|
446 |
+
label="Women's Examples"
|
|
|
447 |
)
|
448 |
gr.Markdown(
|
449 |
'<div class="info-text">Model examples courtesy of <a href="https://huggingface.co/spaces/levihsu/OOTDiffusion">OOTDiffusion</a> and <a href="https://www.outfitanyone.org">OutfitAnyone</a></div>'
|
|
|
458 |
],
|
459 |
examples_per_page=4,
|
460 |
inputs=cloth_image,
|
461 |
+
label="Upper Garments"
|
|
|
462 |
)
|
463 |
condition_overall_exm = gr.Examples(
|
464 |
examples=[
|
|
|
467 |
],
|
468 |
examples_per_page=4,
|
469 |
inputs=cloth_image,
|
470 |
+
label="Full Outfits"
|
|
|
471 |
)
|
472 |
condition_person_exm = gr.Examples(
|
473 |
examples=[
|
|
|
476 |
],
|
477 |
examples_per_page=4,
|
478 |
inputs=cloth_image,
|
479 |
+
label="Reference Styles"
|
|
|
480 |
)
|
481 |
gr.Markdown(
|
482 |
'<div class="info-text">Clothing examples sourced from various online retailers</div>'
|