Spaces:
Running
Running
Upload app.py
Browse files
app.py
CHANGED
@@ -49,24 +49,21 @@ def virtual_tryon(
|
|
49 |
|
50 |
|
51 |
with gr.Blocks() as demo:
|
52 |
-
gr.Markdown("##
|
53 |
-
with gr.Row():
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
label="Garment Image")
|
58 |
-
garment_type = gr.Radio(
|
59 |
-
choices=[("Upper", "upper_body"), ("Lower", "lower_body"),
|
60 |
-
("Dress", "dresses")],
|
61 |
-
value="upper_body",
|
62 |
-
label="Garment Type",
|
63 |
-
)
|
64 |
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
|
|
|
|
|
|
|
|
70 |
btn = gr.Button("Generate")
|
71 |
btn.click(virtual_tryon, [src, ref, garment_type], out)
|
72 |
|
|
|
49 |
|
50 |
|
51 |
with gr.Blocks() as demo:
|
52 |
+
gr.Markdown("## V_TRY DEMO")
|
53 |
+
with gr.Row(min_width=600):
|
54 |
+
with gr.Column:
|
55 |
+
src = gr.Image(sources="upload", type="filepath", label="Person Image")
|
56 |
+
ref = gr.Image(sources="upload", type="filepath", label="Garment Image")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
|
58 |
+
garment_type = gr.Radio(
|
59 |
+
choices=[("Upper", "upper_body"), ("Lower", "lower_body"),("Dress", "dresses")],
|
60 |
+
value="upper_body",
|
61 |
+
label="Garment Type",
|
62 |
+
)
|
63 |
+
|
64 |
+
with gr.Column():
|
65 |
+
out = gr.Image(type="filepath",label="Result",
|
66 |
+
)
|
67 |
btn = gr.Button("Generate")
|
68 |
btn.click(virtual_tryon, [src, ref, garment_type], out)
|
69 |
|